udf: Unify .read_folio for normal and in-ICB files
authorJan Kara <jack@suse.cz>
Tue, 24 Jan 2023 10:40:28 +0000 (11:40 +0100)
committerJan Kara <jack@suse.cz>
Thu, 26 Jan 2023 15:46:35 +0000 (16:46 +0100)
commitb7c31e6f14779324a39927cdaf493dc193576da1
tree6a57efdcbdc9abed0d397867083e96654207217a
parentf54aa97fb7e5329a373f9df4e5e213ced4fc8759
udf: Unify .read_folio for normal and in-ICB files

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, make udf_read_folio() 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