diff options
author | Jan Kara <jack@suse.cz> | 2023-01-19 14:28:37 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2023-01-26 18:46:34 +0300 |
commit | 6a3b37e0ea20bcb50e519c75fae3387199f35400 (patch) | |
tree | 3de82574f6f6fec59e170073f4916e8e97ac0951 /fs/cifs | |
parent | f950fd0529130a617b3da526da9fb6a896ce87c2 (diff) | |
download | linux-6a3b37e0ea20bcb50e519c75fae3387199f35400.tar.xz |
udf: Push i_data_sem locking into udf_expand_file_adinicb()
The checks we do in udf_setsize() and udf_file_write_iter() are safe to
do only with i_rwsem locked as it stabilizes both file type and file
size. Hence we don't need to lock i_data_sem before we enter
udf_expand_file_adinicb() which simplifies the locking somewhat.
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/cifs')
0 files changed, 0 insertions, 0 deletions