]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove wrong comment for can_nocow_extent()
authorFilipe Manana <fdmanana@suse.com>
Wed, 27 Jan 2021 15:05:41 +0000 (15:05 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 8 Feb 2021 21:58:59 +0000 (22:58 +0100)
commit86ec2256a462420dce230f8156cfed53529b9c13
tree7b1d4f4c1234f1e39cd684de2bb2a1d8118ecec1
parent5d6c82ec53a201686591d0e15aa0ade6f993e3da
btrfs: remove wrong comment for can_nocow_extent()

The comment for can_nocow_extent() says that the function will flush
ordered extents, however that never happens and was never true before the
comment was added in commit 03ee3de5062c ("btrfs: add comments for
btrfs_check_can_nocow() and can_nocow_extent()"). This is true only for
the function btrfs_check_can_nocow(), which after that commit was renamed
to check_can_nocow(). So just remove that part of the comment.

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/inode.c