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

btrfs: Make count_inode_refs take btrfs_inode

Signed-off-by: NNikolay Borisov <n.borisov.lkml@gmail.com>
Signed-off-by: NDavid Sterba <dsterba@suse.com>
上级 36283658
...@@ -1406,7 +1406,7 @@ static int count_inode_extrefs(struct btrfs_root *root, ...@@ -1406,7 +1406,7 @@ static int count_inode_extrefs(struct btrfs_root *root,
} }
static int count_inode_refs(struct btrfs_root *root, static int count_inode_refs(struct btrfs_root *root,
struct inode *inode, struct btrfs_path *path) struct btrfs_inode *inode, struct btrfs_path *path)
{ {
int ret; int ret;
struct btrfs_key key; struct btrfs_key key;
...@@ -1414,7 +1414,7 @@ static int count_inode_refs(struct btrfs_root *root, ...@@ -1414,7 +1414,7 @@ static int count_inode_refs(struct btrfs_root *root,
unsigned long ptr; unsigned long ptr;
unsigned long ptr_end; unsigned long ptr_end;
int name_len; int name_len;
u64 ino = btrfs_ino(BTRFS_I(inode)); u64 ino = btrfs_ino(inode);
key.objectid = ino; key.objectid = ino;
key.type = BTRFS_INODE_REF_KEY; key.type = BTRFS_INODE_REF_KEY;
...@@ -1485,7 +1485,7 @@ static noinline int fixup_inode_link_count(struct btrfs_trans_handle *trans, ...@@ -1485,7 +1485,7 @@ static noinline int fixup_inode_link_count(struct btrfs_trans_handle *trans,
if (!path) if (!path)
return -ENOMEM; return -ENOMEM;
ret = count_inode_refs(root, inode, path); ret = count_inode_refs(root, BTRFS_I(inode), path);
if (ret < 0) if (ret < 0)
goto out; goto out;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册