diff options
Diffstat (limited to 'fs/ext4/symlink.c')
-rw-r--r-- | fs/ext4/symlink.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ext4/symlink.c b/fs/ext4/symlink.c index 136ca0e911fd..19f78f20975e 100644 --- a/fs/ext4/symlink.c +++ b/fs/ext4/symlink.c | |||
@@ -28,7 +28,7 @@ static void *ext4_follow_link(struct dentry *dentry, struct nameidata *nd) | |||
28 | struct page *cpage = NULL; | 28 | struct page *cpage = NULL; |
29 | char *caddr, *paddr = NULL; | 29 | char *caddr, *paddr = NULL; |
30 | struct ext4_str cstr, pstr; | 30 | struct ext4_str cstr, pstr; |
31 | struct inode *inode = dentry->d_inode; | 31 | struct inode *inode = d_inode(dentry); |
32 | struct ext4_fname_crypto_ctx *ctx = NULL; | 32 | struct ext4_fname_crypto_ctx *ctx = NULL; |
33 | struct ext4_encrypted_symlink_data *sd; | 33 | struct ext4_encrypted_symlink_data *sd; |
34 | loff_t size = min_t(loff_t, i_size_read(inode), PAGE_SIZE - 1); | 34 | loff_t size = min_t(loff_t, i_size_read(inode), PAGE_SIZE - 1); |
@@ -43,8 +43,8 @@ static void *ext4_follow_link(struct dentry *dentry, struct nameidata *nd) | |||
43 | return ctx; | 43 | return ctx; |
44 | 44 | ||
45 | if (ext4_inode_is_fast_symlink(inode)) { | 45 | if (ext4_inode_is_fast_symlink(inode)) { |
46 | caddr = (char *) EXT4_I(dentry->d_inode)->i_data; | 46 | caddr = (char *) EXT4_I(inode)->i_data; |
47 | max_size = sizeof(EXT4_I(dentry->d_inode)->i_data); | 47 | max_size = sizeof(EXT4_I(inode)->i_data); |
48 | } else { | 48 | } else { |
49 | cpage = read_mapping_page(inode->i_mapping, 0, NULL); | 49 | cpage = read_mapping_page(inode->i_mapping, 0, NULL); |
50 | if (IS_ERR(cpage)) { | 50 | if (IS_ERR(cpage)) { |
@@ -113,7 +113,7 @@ static void ext4_put_link(struct dentry *dentry, struct nameidata *nd, | |||
113 | 113 | ||
114 | static void *ext4_follow_fast_link(struct dentry *dentry, struct nameidata *nd) | 114 | static void *ext4_follow_fast_link(struct dentry *dentry, struct nameidata *nd) |
115 | { | 115 | { |
116 | struct ext4_inode_info *ei = EXT4_I(dentry->d_inode); | 116 | struct ext4_inode_info *ei = EXT4_I(d_inode(dentry)); |
117 | nd_set_link(nd, (char *) ei->i_data); | 117 | nd_set_link(nd, (char *) ei->i_data); |
118 | return NULL; | 118 | return NULL; |
119 | } | 119 | } |