diff options
Diffstat (limited to 'fs/btrfs/export.c')
-rw-r--r-- | fs/btrfs/export.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/export.c b/fs/btrfs/export.c index 37d164540c3a..8d052209f473 100644 --- a/fs/btrfs/export.c +++ b/fs/btrfs/export.c | |||
@@ -152,7 +152,7 @@ static struct dentry *btrfs_fh_to_dentry(struct super_block *sb, struct fid *fh, | |||
152 | 152 | ||
153 | static struct dentry *btrfs_get_parent(struct dentry *child) | 153 | static struct dentry *btrfs_get_parent(struct dentry *child) |
154 | { | 154 | { |
155 | struct inode *dir = child->d_inode; | 155 | struct inode *dir = d_inode(child); |
156 | struct btrfs_root *root = BTRFS_I(dir)->root; | 156 | struct btrfs_root *root = BTRFS_I(dir)->root; |
157 | struct btrfs_path *path; | 157 | struct btrfs_path *path; |
158 | struct extent_buffer *leaf; | 158 | struct extent_buffer *leaf; |
@@ -220,8 +220,8 @@ fail: | |||
220 | static int btrfs_get_name(struct dentry *parent, char *name, | 220 | static int btrfs_get_name(struct dentry *parent, char *name, |
221 | struct dentry *child) | 221 | struct dentry *child) |
222 | { | 222 | { |
223 | struct inode *inode = child->d_inode; | 223 | struct inode *inode = d_inode(child); |
224 | struct inode *dir = parent->d_inode; | 224 | struct inode *dir = d_inode(parent); |
225 | struct btrfs_path *path; | 225 | struct btrfs_path *path; |
226 | struct btrfs_root *root = BTRFS_I(dir)->root; | 226 | struct btrfs_root *root = BTRFS_I(dir)->root; |
227 | struct btrfs_inode_ref *iref; | 227 | struct btrfs_inode_ref *iref; |