diff options
Diffstat (limited to 'fs/ext3/xattr.c')
-rw-r--r-- | fs/ext3/xattr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/ext3/xattr.c b/fs/ext3/xattr.c index c6874be6d58b..a5591d721b55 100644 --- a/fs/ext3/xattr.c +++ b/fs/ext3/xattr.c | |||
@@ -137,7 +137,7 @@ ext3_xattr_handler(int name_index) | |||
137 | /* | 137 | /* |
138 | * Inode operation listxattr() | 138 | * Inode operation listxattr() |
139 | * | 139 | * |
140 | * dentry->d_inode->i_mutex: don't care | 140 | * d_inode(dentry)->i_mutex: don't care |
141 | */ | 141 | */ |
142 | ssize_t | 142 | ssize_t |
143 | ext3_listxattr(struct dentry *dentry, char *buffer, size_t size) | 143 | ext3_listxattr(struct dentry *dentry, char *buffer, size_t size) |
@@ -355,7 +355,7 @@ ext3_xattr_list_entries(struct dentry *dentry, struct ext3_xattr_entry *entry, | |||
355 | static int | 355 | static int |
356 | ext3_xattr_block_list(struct dentry *dentry, char *buffer, size_t buffer_size) | 356 | ext3_xattr_block_list(struct dentry *dentry, char *buffer, size_t buffer_size) |
357 | { | 357 | { |
358 | struct inode *inode = dentry->d_inode; | 358 | struct inode *inode = d_inode(dentry); |
359 | struct buffer_head *bh = NULL; | 359 | struct buffer_head *bh = NULL; |
360 | int error; | 360 | int error; |
361 | 361 | ||
@@ -391,7 +391,7 @@ cleanup: | |||
391 | static int | 391 | static int |
392 | ext3_xattr_ibody_list(struct dentry *dentry, char *buffer, size_t buffer_size) | 392 | ext3_xattr_ibody_list(struct dentry *dentry, char *buffer, size_t buffer_size) |
393 | { | 393 | { |
394 | struct inode *inode = dentry->d_inode; | 394 | struct inode *inode = d_inode(dentry); |
395 | struct ext3_xattr_ibody_header *header; | 395 | struct ext3_xattr_ibody_header *header; |
396 | struct ext3_inode *raw_inode; | 396 | struct ext3_inode *raw_inode; |
397 | struct ext3_iloc iloc; | 397 | struct ext3_iloc iloc; |
@@ -432,7 +432,7 @@ ext3_xattr_list(struct dentry *dentry, char *buffer, size_t buffer_size) | |||
432 | { | 432 | { |
433 | int i_error, b_error; | 433 | int i_error, b_error; |
434 | 434 | ||
435 | down_read(&EXT3_I(dentry->d_inode)->xattr_sem); | 435 | down_read(&EXT3_I(d_inode(dentry))->xattr_sem); |
436 | i_error = ext3_xattr_ibody_list(dentry, buffer, buffer_size); | 436 | i_error = ext3_xattr_ibody_list(dentry, buffer, buffer_size); |
437 | if (i_error < 0) { | 437 | if (i_error < 0) { |
438 | b_error = 0; | 438 | b_error = 0; |
@@ -445,7 +445,7 @@ ext3_xattr_list(struct dentry *dentry, char *buffer, size_t buffer_size) | |||
445 | if (b_error < 0) | 445 | if (b_error < 0) |
446 | i_error = 0; | 446 | i_error = 0; |
447 | } | 447 | } |
448 | up_read(&EXT3_I(dentry->d_inode)->xattr_sem); | 448 | up_read(&EXT3_I(d_inode(dentry))->xattr_sem); |
449 | return i_error + b_error; | 449 | return i_error + b_error; |
450 | } | 450 | } |
451 | 451 | ||