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

btrfs: Make count_inode_extrefs take btrfs_inode

Signed-off-by: NNikolay Borisov <n.borisov.lkml@gmail.com>
Signed-off-by: NDavid Sterba <dsterba@suse.com>
上级 a59108a7
...@@ -1362,14 +1362,14 @@ static int insert_orphan_item(struct btrfs_trans_handle *trans, ...@@ -1362,14 +1362,14 @@ static int insert_orphan_item(struct btrfs_trans_handle *trans,
} }
static int count_inode_extrefs(struct btrfs_root *root, static int count_inode_extrefs(struct btrfs_root *root,
struct inode *inode, struct btrfs_path *path) struct btrfs_inode *inode, struct btrfs_path *path)
{ {
int ret = 0; int ret = 0;
int name_len; int name_len;
unsigned int nlink = 0; unsigned int nlink = 0;
u32 item_size; u32 item_size;
u32 cur_offset = 0; u32 cur_offset = 0;
u64 inode_objectid = btrfs_ino(BTRFS_I(inode)); u64 inode_objectid = btrfs_ino(inode);
u64 offset = 0; u64 offset = 0;
unsigned long ptr; unsigned long ptr;
struct btrfs_inode_extref *extref; struct btrfs_inode_extref *extref;
...@@ -1491,7 +1491,7 @@ static noinline int fixup_inode_link_count(struct btrfs_trans_handle *trans, ...@@ -1491,7 +1491,7 @@ static noinline int fixup_inode_link_count(struct btrfs_trans_handle *trans,
nlink = ret; nlink = ret;
ret = count_inode_extrefs(root, inode, path); ret = count_inode_extrefs(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.
先完成此消息的编辑!
想要评论请 注册