提交 16d1c062 编写于 作者: N Nikolay Borisov 提交者: David Sterba

btrfs: Fix comment in lookup_inline_extent_backref

The comment wrongfully states that the owner parameter is the level of
the parent block. In fact owner is the level of the current block and
by adding 1 to it we can eventually get to the parent/root.
Signed-off-by: NNikolay Borisov <nborisov@suse.com>
Signed-off-by: NDavid Sterba <dsterba@suse.com>
上级 bd3c685e
...@@ -1635,8 +1635,8 @@ int lookup_inline_extent_backref(struct btrfs_trans_handle *trans, ...@@ -1635,8 +1635,8 @@ int lookup_inline_extent_backref(struct btrfs_trans_handle *trans,
extra_size = -1; extra_size = -1;
/* /*
* Owner is our parent level, so we can just add one to get the level * Owner is our level, so we can just add one to get the level for the
* for the block we are interested in. * block we are interested in.
*/ */
if (skinny_metadata && owner < BTRFS_FIRST_FREE_OBJECTID) { if (skinny_metadata && owner < BTRFS_FIRST_FREE_OBJECTID) {
key.type = BTRFS_METADATA_ITEM_KEY; key.type = BTRFS_METADATA_ITEM_KEY;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册