diff options
author | Nikolay Borisov <n.borisov.lkml@gmail.com> | 2017-01-17 17:31:49 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-14 09:50:57 -0500 |
commit | 36283658234201f92fde544328d345517a6ffe4e (patch) | |
tree | 7cb8c511780f4a069bc58b8825123de825151c02 | |
parent | a59108a73f347d03743941af04ed6dcaa2dd9e66 (diff) |
btrfs: Make count_inode_extrefs take btrfs_inode
Signed-off-by: Nikolay Borisov <n.borisov.lkml@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
-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 c525a685bfa2..1e466ae5b140 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c | |||
@@ -1362,14 +1362,14 @@ static int insert_orphan_item(struct btrfs_trans_handle *trans, | |||
1362 | } | 1362 | } |
1363 | 1363 | ||
1364 | static int count_inode_extrefs(struct btrfs_root *root, | 1364 | static int count_inode_extrefs(struct btrfs_root *root, |
1365 | struct inode *inode, struct btrfs_path *path) | 1365 | struct btrfs_inode *inode, struct btrfs_path *path) |
1366 | { | 1366 | { |
1367 | int ret = 0; | 1367 | int ret = 0; |
1368 | int name_len; | 1368 | int name_len; |
1369 | unsigned int nlink = 0; | 1369 | unsigned int nlink = 0; |
1370 | u32 item_size; | 1370 | u32 item_size; |
1371 | u32 cur_offset = 0; | 1371 | u32 cur_offset = 0; |
1372 | u64 inode_objectid = btrfs_ino(BTRFS_I(inode)); | 1372 | u64 inode_objectid = btrfs_ino(inode); |
1373 | u64 offset = 0; | 1373 | u64 offset = 0; |
1374 | unsigned long ptr; | 1374 | unsigned long ptr; |
1375 | struct btrfs_inode_extref *extref; | 1375 | struct btrfs_inode_extref *extref; |
@@ -1491,7 +1491,7 @@ static noinline int fixup_inode_link_count(struct btrfs_trans_handle *trans, | |||
1491 | 1491 | ||
1492 | nlink = ret; | 1492 | nlink = ret; |
1493 | 1493 | ||
1494 | ret = count_inode_extrefs(root, inode, path); | 1494 | ret = count_inode_extrefs(root, BTRFS_I(inode), path); |
1495 | if (ret < 0) | 1495 | if (ret < 0) |
1496 | goto out; | 1496 | goto out; |
1497 | 1497 | ||