summaryrefslogtreecommitdiff
path: root/fs/udf/inode.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2023-01-19 12:51:21 +0300
committerJan Kara <jack@suse.cz>2023-01-26 18:46:35 +0300
commit3c21204818ae45504b5d8ce8902748ef2306f0f3 (patch)
tree5768468b7032d20266917b5fb0f61ee614f6ce5c /fs/udf/inode.c
parentb9a861fd527ab123e76effb492b4eb7e8115d4ca (diff)
downloadlinux-3c21204818ae45504b5d8ce8902748ef2306f0f3.tar.xz
udf: Allocate blocks on write page fault
Currently if file with holes is mapped, udf allocates blocks for dirtied pages during page writeback. This however creates problems when to truncate final extent to proper size and currently we leave the last extent untruncated which violates UDF standard. So allocate blocks on write page fault instead. In that case the last extent gets truncated the file is closed and everything is happy. Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/inode.c')
-rw-r--r--fs/udf/inode.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/udf/inode.c b/fs/udf/inode.c
index f57ef7d0a207..bac4f905bbd1 100644
--- a/fs/udf/inode.c
+++ b/fs/udf/inode.c
@@ -68,7 +68,6 @@ static void udf_prealloc_extents(struct inode *, int, int,
static void udf_merge_extents(struct inode *, struct kernel_long_ad *, int *);
static int udf_update_extents(struct inode *, struct kernel_long_ad *, int,
int, struct extent_position *);
-static int udf_get_block(struct inode *, sector_t, struct buffer_head *, int);
static void __udf_clear_extent_cache(struct inode *inode)
{