btrfs: update comment for btrfs_set_inode_full_sync() about locking
authorFilipe Manana <fdmanana@suse.com>
Tue, 9 Apr 2024 15:41:05 +0000 (16:41 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 May 2024 19:31:07 +0000 (21:31 +0200)
commit65bb9fb00b7012a78b2f5d1cd042bf098900c5d3
tree60c301e1dc98220db04ae6cfa4fba63ac27abba6
parent956a17d9d050761e34ae6f2624e9c1ce456de204
btrfs: update comment for btrfs_set_inode_full_sync() about locking

Nowadays we have a lock used to synchronize mmap writes with reflink and
fsync operations (struct btrfs_inode::i_mmap_lock), so update the comment
for btrfs_set_inode_full_sync() to mention that it can also be called
while holding that mmap lock. Besides being a valid alternative to the
inode's VFS lock, we already have the extent map shrinker using that mmap
lock instead.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/btrfs_inode.h