aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/xattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/xattr.c')
-rw-r--r--fs/ext4/xattr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c
index 1e09fc77395c..19935320f7b4 100644
--- a/fs/ext4/xattr.c
+++ b/fs/ext4/xattr.c
@@ -179,7 +179,7 @@ ext4_xattr_handler(int name_index)
179/* 179/*
180 * Inode operation listxattr() 180 * Inode operation listxattr()
181 * 181 *
182 * dentry->d_inode->i_mutex: don't care 182 * d_inode(dentry)->i_mutex: don't care
183 */ 183 */
184ssize_t 184ssize_t
185ext4_listxattr(struct dentry *dentry, char *buffer, size_t size) 185ext4_listxattr(struct dentry *dentry, char *buffer, size_t size)
@@ -424,7 +424,7 @@ ext4_xattr_list_entries(struct dentry *dentry, struct ext4_xattr_entry *entry,
424static int 424static int
425ext4_xattr_block_list(struct dentry *dentry, char *buffer, size_t buffer_size) 425ext4_xattr_block_list(struct dentry *dentry, char *buffer, size_t buffer_size)
426{ 426{
427 struct inode *inode = dentry->d_inode; 427 struct inode *inode = d_inode(dentry);
428 struct buffer_head *bh = NULL; 428 struct buffer_head *bh = NULL;
429 int error; 429 int error;
430 struct mb_cache *ext4_mb_cache = EXT4_GET_MB_CACHE(inode); 430 struct mb_cache *ext4_mb_cache = EXT4_GET_MB_CACHE(inode);
@@ -461,7 +461,7 @@ cleanup:
461static int 461static int
462ext4_xattr_ibody_list(struct dentry *dentry, char *buffer, size_t buffer_size) 462ext4_xattr_ibody_list(struct dentry *dentry, char *buffer, size_t buffer_size)
463{ 463{
464 struct inode *inode = dentry->d_inode; 464 struct inode *inode = d_inode(dentry);
465 struct ext4_xattr_ibody_header *header; 465 struct ext4_xattr_ibody_header *header;
466 struct ext4_inode *raw_inode; 466 struct ext4_inode *raw_inode;
467 struct ext4_iloc iloc; 467 struct ext4_iloc iloc;
@@ -502,7 +502,7 @@ ext4_xattr_list(struct dentry *dentry, char *buffer, size_t buffer_size)
502{ 502{
503 int ret, ret2; 503 int ret, ret2;
504 504
505 down_read(&EXT4_I(dentry->d_inode)->xattr_sem); 505 down_read(&EXT4_I(d_inode(dentry))->xattr_sem);
506 ret = ret2 = ext4_xattr_ibody_list(dentry, buffer, buffer_size); 506 ret = ret2 = ext4_xattr_ibody_list(dentry, buffer, buffer_size);
507 if (ret < 0) 507 if (ret < 0)
508 goto errout; 508 goto errout;
@@ -515,7 +515,7 @@ ext4_xattr_list(struct dentry *dentry, char *buffer, size_t buffer_size)
515 goto errout; 515 goto errout;
516 ret += ret2; 516 ret += ret2;
517errout: 517errout:
518 up_read(&EXT4_I(dentry->d_inode)->xattr_sem); 518 up_read(&EXT4_I(d_inode(dentry))->xattr_sem);
519 return ret; 519 return ret;
520} 520}
521 521