diff options
author | Nikolay Borisov <n.borisov.lkml@gmail.com> | 2017-01-17 17:31:50 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-14 09:50:57 -0500 |
commit | f329e319714cd0d72479bae4e495ebedf765b2e4 (patch) | |
tree | aebd737979bd29bd7d5a28952a5df2dcf08085dd /fs/btrfs/tree-log.c | |
parent | 36283658234201f92fde544328d345517a6ffe4e (diff) |
btrfs: Make count_inode_refs take btrfs_inode
Signed-off-by: Nikolay Borisov <n.borisov.lkml@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r-- | fs/btrfs/tree-log.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index 1e466ae5b140..20fd7a6fd00d 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c | |||
@@ -1406,7 +1406,7 @@ static int count_inode_extrefs(struct btrfs_root *root, | |||
1406 | } | 1406 | } |
1407 | 1407 | ||
1408 | static int count_inode_refs(struct btrfs_root *root, | 1408 | static int count_inode_refs(struct btrfs_root *root, |
1409 | struct inode *inode, struct btrfs_path *path) | 1409 | struct btrfs_inode *inode, struct btrfs_path *path) |
1410 | { | 1410 | { |
1411 | int ret; | 1411 | int ret; |
1412 | struct btrfs_key key; | 1412 | struct btrfs_key key; |
@@ -1414,7 +1414,7 @@ static int count_inode_refs(struct btrfs_root *root, | |||
1414 | unsigned long ptr; | 1414 | unsigned long ptr; |
1415 | unsigned long ptr_end; | 1415 | unsigned long ptr_end; |
1416 | int name_len; | 1416 | int name_len; |
1417 | u64 ino = btrfs_ino(BTRFS_I(inode)); | 1417 | u64 ino = btrfs_ino(inode); |
1418 | 1418 | ||
1419 | key.objectid = ino; | 1419 | key.objectid = ino; |
1420 | key.type = BTRFS_INODE_REF_KEY; | 1420 | key.type = BTRFS_INODE_REF_KEY; |
@@ -1485,7 +1485,7 @@ static noinline int fixup_inode_link_count(struct btrfs_trans_handle *trans, | |||
1485 | if (!path) | 1485 | if (!path) |
1486 | return -ENOMEM; | 1486 | return -ENOMEM; |
1487 | 1487 | ||
1488 | ret = count_inode_refs(root, inode, path); | 1488 | ret = count_inode_refs(root, BTRFS_I(inode), path); |
1489 | if (ret < 0) | 1489 | if (ret < 0) |
1490 | goto out; | 1490 | goto out; |
1491 | 1491 | ||