diff options
author | Jan Kara <jack@suse.cz> | 2023-01-19 10:51:21 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2023-01-26 16:46:35 +0100 |
commit | 3c21204818ae45504b5d8ce8902748ef2306f0f3 (patch) | |
tree | 5768468b7032d20266917b5fb0f61ee614f6ce5c /fs/mpage.c | |
parent | udf: Protect truncate and file type conversion with invalidate_lock (diff) | |
download | linux-3c21204818ae45504b5d8ce8902748ef2306f0f3.tar.xz linux-3c21204818ae45504b5d8ce8902748ef2306f0f3.zip |
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/mpage.c')
0 files changed, 0 insertions, 0 deletions