diff options
| author | Christoph Hellwig <[email protected]> | 2024-10-08 08:59:17 +0000 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2024-10-15 09:37:42 +0000 |
| commit | abd7d651ad2cd2ab1b8cd4dd31e80a8255196db3 (patch) | |
| tree | d1d5622a1f2e215af11a5a88ce7578e0b0c9df2f /rust/helpers/blk.c | |
| parent | xfs: take XFS_MMAPLOCK_EXCL xfs_file_write_zero_eof (diff) | |
| download | kernel-abd7d651ad2cd2ab1b8cd4dd31e80a8255196db3.tar.gz kernel-abd7d651ad2cd2ab1b8cd4dd31e80a8255196db3.zip | |
xfs: IOMAP_ZERO and IOMAP_UNSHARE already hold invalidate_lock
All XFS callers of iomap_zero_range and iomap_file_unshare already hold
invalidate_lock, so we can't take it again in
iomap_file_buffered_write_punch_delalloc.
Use the passed in flags argument to detect if we're called from a zero
or unshare operation and don't take the lock again in this case.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'rust/helpers/blk.c')
0 files changed, 0 insertions, 0 deletions
