Commit 6d0f25cd authored by Filipe Manana's avatar Filipe Manana Committed by David Sterba
Browse files

btrfs: update stale comment in __cow_file_range_inline()



We mention that the reserved data space is page size aligned but that's
not true anymore, as it's sector size aligned instead.
In commit 0bb067ca ("btrfs: fix the qgroup data free range for inline
data extents") we updated the amount passed to btrfs_qgroup_free_data()
from page size to sector size, but forgot to update the comment.

Reviewed-by: default avatarQu Wenruo <wqu@suse.com>
Signed-off-by: default avatarFilipe Manana <fdmanana@suse.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 3d47c0c8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -690,8 +690,8 @@ static noinline int __cow_file_range_inline(struct btrfs_inode *inode,
	/*
	 * Don't forget to free the reserved space, as for inlined extent
	 * it won't count as data extent, free them directly here.
	 * And at reserve time, it's always aligned to page size, so
	 * just free one page here.
	 * And at reserve time, it's always aligned to sector size, so
	 * just free one sector here.
	 *
	 * If we fallback to non-inline (ret == 1) due to -ENOSPC, then we need
	 * to keep the data reservation.