aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2017-02-20 06:50:30 -0500
committerDavid Sterba <dsterba@suse.com>2017-02-28 05:30:05 -0500
commitd0a0b78de4a641ff0924687bfd5a9698f1a97f7a (patch)
treefb4fc02f813418ee231cb133f48374ccbddde4f2 /fs/btrfs/tree-log.c
parent6288d6eabc7505f42dda34a2c2962f91914be3a4 (diff)
btrfs: Make btrfs_log_all_parents take btrfs_inode
Signed-off-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r--fs/btrfs/tree-log.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index 3806853cde08..cf45b264cff3 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -5287,15 +5287,15 @@ next_dir_inode:
5287} 5287}
5288 5288
5289static int btrfs_log_all_parents(struct btrfs_trans_handle *trans, 5289static int btrfs_log_all_parents(struct btrfs_trans_handle *trans,
5290 struct inode *inode, 5290 struct btrfs_inode *inode,
5291 struct btrfs_log_ctx *ctx) 5291 struct btrfs_log_ctx *ctx)
5292{ 5292{
5293 struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb); 5293 struct btrfs_fs_info *fs_info = btrfs_sb(inode->vfs_inode.i_sb);
5294 int ret; 5294 int ret;
5295 struct btrfs_path *path; 5295 struct btrfs_path *path;
5296 struct btrfs_key key; 5296 struct btrfs_key key;
5297 struct btrfs_root *root = BTRFS_I(inode)->root; 5297 struct btrfs_root *root = inode->root;
5298 const u64 ino = btrfs_ino(BTRFS_I(inode)); 5298 const u64 ino = btrfs_ino(inode);
5299 5299
5300 path = btrfs_alloc_path(); 5300 path = btrfs_alloc_path();
5301 if (!path) 5301 if (!path)
@@ -5506,7 +5506,7 @@ static int btrfs_log_inode_parent(struct btrfs_trans_handle *trans,
5506 * and has a link count of 2. 5506 * and has a link count of 2.
5507 */ 5507 */
5508 if (BTRFS_I(inode)->last_unlink_trans > last_committed) { 5508 if (BTRFS_I(inode)->last_unlink_trans > last_committed) {
5509 ret = btrfs_log_all_parents(trans, orig_inode, ctx); 5509 ret = btrfs_log_all_parents(trans, BTRFS_I(orig_inode), ctx);
5510 if (ret) 5510 if (ret)
5511 goto end_trans; 5511 goto end_trans;
5512 } 5512 }