diff options
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 6aaab31a722e..8aaca5c6af94 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c | |||
@@ -4965,7 +4965,7 @@ static noinline int check_parent_dirs_for_sync(struct btrfs_trans_handle *trans, | |||
4965 | goto out; | 4965 | goto out; |
4966 | 4966 | ||
4967 | if (!S_ISDIR(inode->i_mode)) { | 4967 | if (!S_ISDIR(inode->i_mode)) { |
4968 | if (!parent || d_really_is_negative(parent) || sb != d_inode(parent)->i_sb) | 4968 | if (!parent || d_really_is_negative(parent) || sb != parent->d_sb) |
4969 | goto out; | 4969 | goto out; |
4970 | inode = d_inode(parent); | 4970 | inode = d_inode(parent); |
4971 | } | 4971 | } |
@@ -4986,7 +4986,7 @@ static noinline int check_parent_dirs_for_sync(struct btrfs_trans_handle *trans, | |||
4986 | break; | 4986 | break; |
4987 | } | 4987 | } |
4988 | 4988 | ||
4989 | if (!parent || d_really_is_negative(parent) || sb != d_inode(parent)->i_sb) | 4989 | if (!parent || d_really_is_negative(parent) || sb != parent->d_sb) |
4990 | break; | 4990 | break; |
4991 | 4991 | ||
4992 | if (IS_ROOT(parent)) | 4992 | if (IS_ROOT(parent)) |
@@ -5404,7 +5404,7 @@ static int btrfs_log_inode_parent(struct btrfs_trans_handle *trans, | |||
5404 | } | 5404 | } |
5405 | 5405 | ||
5406 | while (1) { | 5406 | while (1) { |
5407 | if (!parent || d_really_is_negative(parent) || sb != d_inode(parent)->i_sb) | 5407 | if (!parent || d_really_is_negative(parent) || sb != parent->d_sb) |
5408 | break; | 5408 | break; |
5409 | 5409 | ||
5410 | inode = d_inode(parent); | 5410 | inode = d_inode(parent); |