udf: Do not allocate blocks on page writeback
authorJan Kara <jack@suse.cz>
Wed, 18 Jan 2023 14:09:49 +0000 (15:09 +0100)
committerJan Kara <jack@suse.cz>
Thu, 26 Jan 2023 15:46:35 +0000 (16:46 +0100)
commit36580ed08776224f25f9a34ede6eed7a4e11aed8
tree6edbc609857b7641b362537d6c8266a464c74bd6
parent7010839ccfd4f875c23c1758f6321ee6312cc548
udf: Do not allocate blocks on page writeback

Now when we allocate blocks on write page fault there should be no block
allocation happening on page writeback. So just ignore the 'create' flag
passed to udf_get_block(). Note that we can spot dirty buffers without
underlying blocks allocated in writeback when we race with expanding
truncate. However in that case these buffers do not contain valid data
so we can safely ignore them and we would just create ourselves problem
when to trim the tail extent.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/inode.c