]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitec7d9570f1625a6bd4aac8dfba8b681905f29ab6
tree2e1d9a1bc5c52fe7113cf1c51f00c7382a84fda9
parent02a64b16e2e02fd1ebf39b3981d6af36821f6aa4
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 297b89f209b17b ("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