aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r--fs/btrfs/tree-log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index 517d0ccb351e..e692eea87af6 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -4988,7 +4988,7 @@ static noinline int check_parent_dirs_for_sync(struct btrfs_trans_handle *trans,
4988 goto out; 4988 goto out;
4989 4989
4990 if (!S_ISDIR(inode->i_mode)) { 4990 if (!S_ISDIR(inode->i_mode)) {
4991 if (!parent || d_really_is_negative(parent) || sb != d_inode(parent)->i_sb) 4991 if (!parent || d_really_is_negative(parent) || sb != parent->d_sb)
4992 goto out; 4992 goto out;
4993 inode = d_inode(parent); 4993 inode = d_inode(parent);
4994 } 4994 }
@@ -5009,7 +5009,7 @@ static noinline int check_parent_dirs_for_sync(struct btrfs_trans_handle *trans,
5009 break; 5009 break;
5010 } 5010 }
5011 5011
5012 if (!parent || d_really_is_negative(parent) || sb != d_inode(parent)->i_sb) 5012 if (!parent || d_really_is_negative(parent) || sb != parent->d_sb)
5013 break; 5013 break;
5014 5014
5015 if (IS_ROOT(parent)) 5015 if (IS_ROOT(parent))
@@ -5422,7 +5422,7 @@ static int btrfs_log_inode_parent(struct btrfs_trans_handle *trans,
5422 } 5422 }
5423 5423
5424 while (1) { 5424 while (1) {
5425 if (!parent || d_really_is_negative(parent) || sb != d_inode(parent)->i_sb) 5425 if (!parent || d_really_is_negative(parent) || sb != parent->d_sb)
5426 break; 5426 break;
5427 5427
5428 inode = d_inode(parent); 5428 inode = d_inode(parent);