btrfs: update outdated comment at btrfs_replace_file_extents()
authorFilipe Manana <fdmanana@suse.com>
Fri, 26 Mar 2021 13:14:41 +0000 (13:14 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Apr 2021 15:25:17 +0000 (17:25 +0200)
commite2b84217f344c41f824d68a07bd3531e19a6c12b
tree2e1d9a1bc5c52fe7113cf1c51f00c7382a84fda9
parent0c0218e9a6cb2042cb8d00e8ae3956ff60f3ee29
btrfs: update outdated comment at btrfs_replace_file_extents()

There is a comment at btrfs_replace_file_extents() that mentions that we
set the full sync flag on an inode when cloning into a file with a size
greater than or equals to 16MiB, through try_release_extent_mapping() when
we truncate the page cache after replacing file extents during a clone
operation.

That is not true anymore since commit 5e548b32018d96 ("btrfs: do not set
the full sync flag on the inode during page release"), so update the
comment to remove that part and rephrase it slightly to make it more
clear why the full sync flag is set at btrfs_replace_file_extents().

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file.c