diff options
author | Nikolay Borisov <n.borisov.lkml@gmail.com> | 2017-01-17 17:31:30 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-14 09:50:54 -0500 |
commit | 0f8939b8ac8623760c078d41282526de143ee623 (patch) | |
tree | 4e76f15f3fb3c81b84329badd48f460b3fd543f1 /fs/btrfs/tree-log.c | |
parent | 436635571bd0b4ba12ec81641667d85e7c29bad5 (diff) |
btrfs: Make btrfs_inode_in_log 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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index 581d31171683..37adad5dabd6 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c | |||
@@ -5237,7 +5237,7 @@ process_leaf: | |||
5237 | goto next_dir_inode; | 5237 | goto next_dir_inode; |
5238 | } | 5238 | } |
5239 | 5239 | ||
5240 | if (btrfs_inode_in_log(di_inode, trans->transid)) { | 5240 | if (btrfs_inode_in_log(BTRFS_I(di_inode), trans->transid)) { |
5241 | iput(di_inode); | 5241 | iput(di_inode); |
5242 | break; | 5242 | break; |
5243 | } | 5243 | } |
@@ -5436,7 +5436,7 @@ static int btrfs_log_inode_parent(struct btrfs_trans_handle *trans, | |||
5436 | if (ret) | 5436 | if (ret) |
5437 | goto end_no_trans; | 5437 | goto end_no_trans; |
5438 | 5438 | ||
5439 | if (btrfs_inode_in_log(inode, trans->transid)) { | 5439 | if (btrfs_inode_in_log(BTRFS_I(inode), trans->transid)) { |
5440 | ret = BTRFS_NO_LOG_SYNC; | 5440 | ret = BTRFS_NO_LOG_SYNC; |
5441 | goto end_no_trans; | 5441 | goto end_no_trans; |
5442 | } | 5442 | } |