udf: Convert all file types to use udf_write_end()
authorJan Kara <jack@suse.cz>
Tue, 24 Jan 2023 11:13:57 +0000 (12:13 +0100)
committerJan Kara <jack@suse.cz>
Thu, 26 Jan 2023 15:46:36 +0000 (16:46 +0100)
commitc694e40ba231e854fcddd25cce46db3918fca291
treede802f5fd616a1cef0c0e1c6e99074849902f618
parent60b99a1b9fa731453e1b69a3e0b3e4dcab7a6ea5
udf: Convert all file types to use udf_write_end()

Switching address_space_operations while a file is used is difficult to
do in a race-free way. To be able to use single address_space_operations
in UDF, create udf_write_end() function that is able to handle both
normal and in-ICB files.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/file.c
fs/udf/inode.c
fs/udf/udfdecl.h