Message ID | 9017cffd318c09a5e6248ca904903938c691b450.1611759896.git.fdmanana@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | btrfs: remove wrong comment for can_nocow_extent() | expand |
On 1/27/21 10:05 AM, fdmanana@kernel.org wrote: > From: Filipe Manana <fdmanana@suse.com> > > 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 e4ecaf90bc13 ("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. > > Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: Josef Bacik <josef@toxicpanda.com> Thanks, Josef
On Wed, Jan 27, 2021 at 03:05:41PM +0000, fdmanana@kernel.org wrote: > From: Filipe Manana <fdmanana@suse.com> > > 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 e4ecaf90bc13 ("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. > > Signed-off-by: Filipe Manana <fdmanana@suse.com> Added to misc-next, thanks.
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 0dbe1aaa0b71..589030cefd90 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -7105,9 +7105,6 @@ static struct extent_map *btrfs_new_extent_direct(struct btrfs_inode *inode, * @strict: if true, omit optimizations that might force us into unnecessary * cow. e.g., don't trust generation number. * - * This function will flush ordered extents in the range to ensure proper - * nocow checks for (nowait == false) case. - * * Return: * >0 and update @len if we can do nocow write * 0 if we can't do nocow write