diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-26 18:48:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-26 20:22:07 -0400 |
commit | 9ec3a646fe09970f801ab15e0f1694060b9f19af (patch) | |
tree | 697058ca7e1671eda180a3ccc62445686fbc1a31 /fs/ext3 | |
parent | c8b3fd0ce313443731e8fd6d5a541085eb465f99 (diff) | |
parent | 3cab989afd8d8d1bc3d99fef0e7ed87c31e7b647 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull fourth vfs update from Al Viro:
"d_inode() annotations from David Howells (sat in for-next since before
the beginning of merge window) + four assorted fixes"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
RCU pathwalk breakage when running into a symlink overmounting something
fix I_DIO_WAKEUP definition
direct-io: only inc/dec inode->i_dio_count for file systems
fs/9p: fix readdir()
VFS: assorted d_backing_inode() annotations
VFS: fs/inode.c helpers: d_inode() annotations
VFS: fs/cachefiles: d_backing_inode() annotations
VFS: fs library helpers: d_inode() annotations
VFS: assorted weird filesystems: d_inode() annotations
VFS: normal filesystems (and lustre): d_inode() annotations
VFS: security/: d_inode() annotations
VFS: security/: d_backing_inode() annotations
VFS: net/: d_inode() annotations
VFS: net/unix: d_backing_inode() annotations
VFS: kernel/: d_inode() annotations
VFS: audit: d_backing_inode() annotations
VFS: Fix up some ->d_inode accesses in the chelsio driver
VFS: Cachefiles should perform fs modifications on the top layer only
VFS: AF_UNIX sockets should call mknod on the top layer only
Diffstat (limited to 'fs/ext3')
-rw-r--r-- | fs/ext3/ialloc.c | 2 | ||||
-rw-r--r-- | fs/ext3/inode.c | 2 | ||||
-rw-r--r-- | fs/ext3/namei.c | 34 | ||||
-rw-r--r-- | fs/ext3/super.c | 6 | ||||
-rw-r--r-- | fs/ext3/symlink.c | 2 | ||||
-rw-r--r-- | fs/ext3/xattr.c | 10 | ||||
-rw-r--r-- | fs/ext3/xattr_security.c | 4 | ||||
-rw-r--r-- | fs/ext3/xattr_trusted.c | 4 | ||||
-rw-r--r-- | fs/ext3/xattr_user.c | 4 |
9 files changed, 34 insertions, 34 deletions
diff --git a/fs/ext3/ialloc.c b/fs/ext3/ialloc.c index a1b810230cc5..3ad242e5840e 100644 --- a/fs/ext3/ialloc.c +++ b/fs/ext3/ialloc.c | |||
@@ -210,7 +210,7 @@ static int find_group_orlov(struct super_block *sb, struct inode *parent) | |||
210 | avefreeb = freeb / ngroups; | 210 | avefreeb = freeb / ngroups; |
211 | ndirs = percpu_counter_read_positive(&sbi->s_dirs_counter); | 211 | ndirs = percpu_counter_read_positive(&sbi->s_dirs_counter); |
212 | 212 | ||
213 | if ((parent == sb->s_root->d_inode) || | 213 | if ((parent == d_inode(sb->s_root)) || |
214 | (EXT3_I(parent)->i_flags & EXT3_TOPDIR_FL)) { | 214 | (EXT3_I(parent)->i_flags & EXT3_TOPDIR_FL)) { |
215 | int best_ndir = inodes_per_group; | 215 | int best_ndir = inodes_per_group; |
216 | int best_group = -1; | 216 | int best_group = -1; |
diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c index 13c0868c7160..2ee2dc4351d1 100644 --- a/fs/ext3/inode.c +++ b/fs/ext3/inode.c | |||
@@ -3240,7 +3240,7 @@ int ext3_write_inode(struct inode *inode, struct writeback_control *wbc) | |||
3240 | */ | 3240 | */ |
3241 | int ext3_setattr(struct dentry *dentry, struct iattr *attr) | 3241 | int ext3_setattr(struct dentry *dentry, struct iattr *attr) |
3242 | { | 3242 | { |
3243 | struct inode *inode = dentry->d_inode; | 3243 | struct inode *inode = d_inode(dentry); |
3244 | int error, rc = 0; | 3244 | int error, rc = 0; |
3245 | const unsigned int ia_valid = attr->ia_valid; | 3245 | const unsigned int ia_valid = attr->ia_valid; |
3246 | 3246 | ||
diff --git a/fs/ext3/namei.c b/fs/ext3/namei.c index f197736dccfa..4264b9bd0002 100644 --- a/fs/ext3/namei.c +++ b/fs/ext3/namei.c | |||
@@ -1049,19 +1049,19 @@ struct dentry *ext3_get_parent(struct dentry *child) | |||
1049 | struct ext3_dir_entry_2 * de; | 1049 | struct ext3_dir_entry_2 * de; |
1050 | struct buffer_head *bh; | 1050 | struct buffer_head *bh; |
1051 | 1051 | ||
1052 | bh = ext3_find_entry(child->d_inode, &dotdot, &de); | 1052 | bh = ext3_find_entry(d_inode(child), &dotdot, &de); |
1053 | if (!bh) | 1053 | if (!bh) |
1054 | return ERR_PTR(-ENOENT); | 1054 | return ERR_PTR(-ENOENT); |
1055 | ino = le32_to_cpu(de->inode); | 1055 | ino = le32_to_cpu(de->inode); |
1056 | brelse(bh); | 1056 | brelse(bh); |
1057 | 1057 | ||
1058 | if (!ext3_valid_inum(child->d_inode->i_sb, ino)) { | 1058 | if (!ext3_valid_inum(d_inode(child)->i_sb, ino)) { |
1059 | ext3_error(child->d_inode->i_sb, "ext3_get_parent", | 1059 | ext3_error(d_inode(child)->i_sb, "ext3_get_parent", |
1060 | "bad inode number: %lu", ino); | 1060 | "bad inode number: %lu", ino); |
1061 | return ERR_PTR(-EIO); | 1061 | return ERR_PTR(-EIO); |
1062 | } | 1062 | } |
1063 | 1063 | ||
1064 | return d_obtain_alias(ext3_iget(child->d_inode->i_sb, ino)); | 1064 | return d_obtain_alias(ext3_iget(d_inode(child)->i_sb, ino)); |
1065 | } | 1065 | } |
1066 | 1066 | ||
1067 | #define S_SHIFT 12 | 1067 | #define S_SHIFT 12 |
@@ -1243,7 +1243,7 @@ static int add_dirent_to_buf(handle_t *handle, struct dentry *dentry, | |||
1243 | struct inode *inode, struct ext3_dir_entry_2 *de, | 1243 | struct inode *inode, struct ext3_dir_entry_2 *de, |
1244 | struct buffer_head * bh) | 1244 | struct buffer_head * bh) |
1245 | { | 1245 | { |
1246 | struct inode *dir = dentry->d_parent->d_inode; | 1246 | struct inode *dir = d_inode(dentry->d_parent); |
1247 | const char *name = dentry->d_name.name; | 1247 | const char *name = dentry->d_name.name; |
1248 | int namelen = dentry->d_name.len; | 1248 | int namelen = dentry->d_name.len; |
1249 | unsigned long offset = 0; | 1249 | unsigned long offset = 0; |
@@ -1330,7 +1330,7 @@ static int add_dirent_to_buf(handle_t *handle, struct dentry *dentry, | |||
1330 | static int make_indexed_dir(handle_t *handle, struct dentry *dentry, | 1330 | static int make_indexed_dir(handle_t *handle, struct dentry *dentry, |
1331 | struct inode *inode, struct buffer_head *bh) | 1331 | struct inode *inode, struct buffer_head *bh) |
1332 | { | 1332 | { |
1333 | struct inode *dir = dentry->d_parent->d_inode; | 1333 | struct inode *dir = d_inode(dentry->d_parent); |
1334 | const char *name = dentry->d_name.name; | 1334 | const char *name = dentry->d_name.name; |
1335 | int namelen = dentry->d_name.len; | 1335 | int namelen = dentry->d_name.len; |
1336 | struct buffer_head *bh2; | 1336 | struct buffer_head *bh2; |
@@ -1435,7 +1435,7 @@ static int make_indexed_dir(handle_t *handle, struct dentry *dentry, | |||
1435 | static int ext3_add_entry (handle_t *handle, struct dentry *dentry, | 1435 | static int ext3_add_entry (handle_t *handle, struct dentry *dentry, |
1436 | struct inode *inode) | 1436 | struct inode *inode) |
1437 | { | 1437 | { |
1438 | struct inode *dir = dentry->d_parent->d_inode; | 1438 | struct inode *dir = d_inode(dentry->d_parent); |
1439 | struct buffer_head * bh; | 1439 | struct buffer_head * bh; |
1440 | struct ext3_dir_entry_2 *de; | 1440 | struct ext3_dir_entry_2 *de; |
1441 | struct super_block * sb; | 1441 | struct super_block * sb; |
@@ -1489,7 +1489,7 @@ static int ext3_dx_add_entry(handle_t *handle, struct dentry *dentry, | |||
1489 | struct dx_entry *entries, *at; | 1489 | struct dx_entry *entries, *at; |
1490 | struct dx_hash_info hinfo; | 1490 | struct dx_hash_info hinfo; |
1491 | struct buffer_head * bh; | 1491 | struct buffer_head * bh; |
1492 | struct inode *dir = dentry->d_parent->d_inode; | 1492 | struct inode *dir = d_inode(dentry->d_parent); |
1493 | struct super_block * sb = dir->i_sb; | 1493 | struct super_block * sb = dir->i_sb; |
1494 | struct ext3_dir_entry_2 *de; | 1494 | struct ext3_dir_entry_2 *de; |
1495 | int err; | 1495 | int err; |
@@ -2111,7 +2111,7 @@ static int ext3_rmdir (struct inode * dir, struct dentry *dentry) | |||
2111 | /* Initialize quotas before so that eventual writes go in | 2111 | /* Initialize quotas before so that eventual writes go in |
2112 | * separate transaction */ | 2112 | * separate transaction */ |
2113 | dquot_initialize(dir); | 2113 | dquot_initialize(dir); |
2114 | dquot_initialize(dentry->d_inode); | 2114 | dquot_initialize(d_inode(dentry)); |
2115 | 2115 | ||
2116 | handle = ext3_journal_start(dir, EXT3_DELETE_TRANS_BLOCKS(dir->i_sb)); | 2116 | handle = ext3_journal_start(dir, EXT3_DELETE_TRANS_BLOCKS(dir->i_sb)); |
2117 | if (IS_ERR(handle)) | 2117 | if (IS_ERR(handle)) |
@@ -2125,7 +2125,7 @@ static int ext3_rmdir (struct inode * dir, struct dentry *dentry) | |||
2125 | if (IS_DIRSYNC(dir)) | 2125 | if (IS_DIRSYNC(dir)) |
2126 | handle->h_sync = 1; | 2126 | handle->h_sync = 1; |
2127 | 2127 | ||
2128 | inode = dentry->d_inode; | 2128 | inode = d_inode(dentry); |
2129 | 2129 | ||
2130 | retval = -EIO; | 2130 | retval = -EIO; |
2131 | if (le32_to_cpu(de->inode) != inode->i_ino) | 2131 | if (le32_to_cpu(de->inode) != inode->i_ino) |
@@ -2173,7 +2173,7 @@ static int ext3_unlink(struct inode * dir, struct dentry *dentry) | |||
2173 | /* Initialize quotas before so that eventual writes go | 2173 | /* Initialize quotas before so that eventual writes go |
2174 | * in separate transaction */ | 2174 | * in separate transaction */ |
2175 | dquot_initialize(dir); | 2175 | dquot_initialize(dir); |
2176 | dquot_initialize(dentry->d_inode); | 2176 | dquot_initialize(d_inode(dentry)); |
2177 | 2177 | ||
2178 | handle = ext3_journal_start(dir, EXT3_DELETE_TRANS_BLOCKS(dir->i_sb)); | 2178 | handle = ext3_journal_start(dir, EXT3_DELETE_TRANS_BLOCKS(dir->i_sb)); |
2179 | if (IS_ERR(handle)) | 2179 | if (IS_ERR(handle)) |
@@ -2187,7 +2187,7 @@ static int ext3_unlink(struct inode * dir, struct dentry *dentry) | |||
2187 | if (!bh) | 2187 | if (!bh) |
2188 | goto end_unlink; | 2188 | goto end_unlink; |
2189 | 2189 | ||
2190 | inode = dentry->d_inode; | 2190 | inode = d_inode(dentry); |
2191 | 2191 | ||
2192 | retval = -EIO; | 2192 | retval = -EIO; |
2193 | if (le32_to_cpu(de->inode) != inode->i_ino) | 2193 | if (le32_to_cpu(de->inode) != inode->i_ino) |
@@ -2328,7 +2328,7 @@ static int ext3_link (struct dentry * old_dentry, | |||
2328 | struct inode * dir, struct dentry *dentry) | 2328 | struct inode * dir, struct dentry *dentry) |
2329 | { | 2329 | { |
2330 | handle_t *handle; | 2330 | handle_t *handle; |
2331 | struct inode *inode = old_dentry->d_inode; | 2331 | struct inode *inode = d_inode(old_dentry); |
2332 | int err, retries = 0; | 2332 | int err, retries = 0; |
2333 | 2333 | ||
2334 | if (inode->i_nlink >= EXT3_LINK_MAX) | 2334 | if (inode->i_nlink >= EXT3_LINK_MAX) |
@@ -2391,8 +2391,8 @@ static int ext3_rename (struct inode * old_dir, struct dentry *old_dentry, | |||
2391 | 2391 | ||
2392 | /* Initialize quotas before so that eventual writes go | 2392 | /* Initialize quotas before so that eventual writes go |
2393 | * in separate transaction */ | 2393 | * in separate transaction */ |
2394 | if (new_dentry->d_inode) | 2394 | if (d_really_is_positive(new_dentry)) |
2395 | dquot_initialize(new_dentry->d_inode); | 2395 | dquot_initialize(d_inode(new_dentry)); |
2396 | handle = ext3_journal_start(old_dir, 2 * | 2396 | handle = ext3_journal_start(old_dir, 2 * |
2397 | EXT3_DATA_TRANS_BLOCKS(old_dir->i_sb) + | 2397 | EXT3_DATA_TRANS_BLOCKS(old_dir->i_sb) + |
2398 | EXT3_INDEX_EXTRA_TRANS_BLOCKS + 2); | 2398 | EXT3_INDEX_EXTRA_TRANS_BLOCKS + 2); |
@@ -2409,12 +2409,12 @@ static int ext3_rename (struct inode * old_dir, struct dentry *old_dentry, | |||
2409 | * and merrily kill the link to whatever was created under the | 2409 | * and merrily kill the link to whatever was created under the |
2410 | * same name. Goodbye sticky bit ;-< | 2410 | * same name. Goodbye sticky bit ;-< |
2411 | */ | 2411 | */ |
2412 | old_inode = old_dentry->d_inode; | 2412 | old_inode = d_inode(old_dentry); |
2413 | retval = -ENOENT; | 2413 | retval = -ENOENT; |
2414 | if (!old_bh || le32_to_cpu(old_de->inode) != old_inode->i_ino) | 2414 | if (!old_bh || le32_to_cpu(old_de->inode) != old_inode->i_ino) |
2415 | goto end_rename; | 2415 | goto end_rename; |
2416 | 2416 | ||
2417 | new_inode = new_dentry->d_inode; | 2417 | new_inode = d_inode(new_dentry); |
2418 | new_bh = ext3_find_entry(new_dir, &new_dentry->d_name, &new_de); | 2418 | new_bh = ext3_find_entry(new_dir, &new_dentry->d_name, &new_de); |
2419 | if (new_bh) { | 2419 | if (new_bh) { |
2420 | if (!new_inode) { | 2420 | if (!new_inode) { |
diff --git a/fs/ext3/super.c b/fs/ext3/super.c index f037b4b27300..a9312f0a54e5 100644 --- a/fs/ext3/super.c +++ b/fs/ext3/super.c | |||
@@ -1170,7 +1170,7 @@ static int parse_options (char *options, struct super_block *sb, | |||
1170 | return 0; | 1170 | return 0; |
1171 | } | 1171 | } |
1172 | 1172 | ||
1173 | journal_inode = path.dentry->d_inode; | 1173 | journal_inode = d_inode(path.dentry); |
1174 | if (!S_ISBLK(journal_inode->i_mode)) { | 1174 | if (!S_ISBLK(journal_inode->i_mode)) { |
1175 | ext3_msg(sb, KERN_ERR, "error: journal path %s " | 1175 | ext3_msg(sb, KERN_ERR, "error: journal path %s " |
1176 | "is not a block device", journal_path); | 1176 | "is not a block device", journal_path); |
@@ -2947,7 +2947,7 @@ static int ext3_write_info(struct super_block *sb, int type) | |||
2947 | handle_t *handle; | 2947 | handle_t *handle; |
2948 | 2948 | ||
2949 | /* Data block + inode block */ | 2949 | /* Data block + inode block */ |
2950 | handle = ext3_journal_start(sb->s_root->d_inode, 2); | 2950 | handle = ext3_journal_start(d_inode(sb->s_root), 2); |
2951 | if (IS_ERR(handle)) | 2951 | if (IS_ERR(handle)) |
2952 | return PTR_ERR(handle); | 2952 | return PTR_ERR(handle); |
2953 | ret = dquot_commit_info(sb, type); | 2953 | ret = dquot_commit_info(sb, type); |
@@ -2994,7 +2994,7 @@ static int ext3_quota_on(struct super_block *sb, int type, int format_id, | |||
2994 | * When we journal data on quota file, we have to flush journal to see | 2994 | * When we journal data on quota file, we have to flush journal to see |
2995 | * all updates to the file when we bypass pagecache... | 2995 | * all updates to the file when we bypass pagecache... |
2996 | */ | 2996 | */ |
2997 | if (ext3_should_journal_data(path->dentry->d_inode)) { | 2997 | if (ext3_should_journal_data(d_inode(path->dentry))) { |
2998 | /* | 2998 | /* |
2999 | * We don't need to lock updates but journal_flush() could | 2999 | * We don't need to lock updates but journal_flush() could |
3000 | * otherwise be livelocked... | 3000 | * otherwise be livelocked... |
diff --git a/fs/ext3/symlink.c b/fs/ext3/symlink.c index 6b01c3eab1f3..ea96df3c58db 100644 --- a/fs/ext3/symlink.c +++ b/fs/ext3/symlink.c | |||
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | static void * ext3_follow_link(struct dentry *dentry, struct nameidata *nd) | 24 | static void * ext3_follow_link(struct dentry *dentry, struct nameidata *nd) |
25 | { | 25 | { |
26 | struct ext3_inode_info *ei = EXT3_I(dentry->d_inode); | 26 | struct ext3_inode_info *ei = EXT3_I(d_inode(dentry)); |
27 | nd_set_link(nd, (char*)ei->i_data); | 27 | nd_set_link(nd, (char*)ei->i_data); |
28 | return NULL; | 28 | return NULL; |
29 | } | 29 | } |
diff --git a/fs/ext3/xattr.c b/fs/ext3/xattr.c index 24215dc09a18..7cf36501ccf4 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 | ||
diff --git a/fs/ext3/xattr_security.c b/fs/ext3/xattr_security.c index 722c2bf9645d..c9506d5e3b13 100644 --- a/fs/ext3/xattr_security.c +++ b/fs/ext3/xattr_security.c | |||
@@ -29,7 +29,7 @@ ext3_xattr_security_get(struct dentry *dentry, const char *name, | |||
29 | { | 29 | { |
30 | if (strcmp(name, "") == 0) | 30 | if (strcmp(name, "") == 0) |
31 | return -EINVAL; | 31 | return -EINVAL; |
32 | return ext3_xattr_get(dentry->d_inode, EXT3_XATTR_INDEX_SECURITY, | 32 | return ext3_xattr_get(d_inode(dentry), EXT3_XATTR_INDEX_SECURITY, |
33 | name, buffer, size); | 33 | name, buffer, size); |
34 | } | 34 | } |
35 | 35 | ||
@@ -39,7 +39,7 @@ ext3_xattr_security_set(struct dentry *dentry, const char *name, | |||
39 | { | 39 | { |
40 | if (strcmp(name, "") == 0) | 40 | if (strcmp(name, "") == 0) |
41 | return -EINVAL; | 41 | return -EINVAL; |
42 | return ext3_xattr_set(dentry->d_inode, EXT3_XATTR_INDEX_SECURITY, | 42 | return ext3_xattr_set(d_inode(dentry), EXT3_XATTR_INDEX_SECURITY, |
43 | name, value, size, flags); | 43 | name, value, size, flags); |
44 | } | 44 | } |
45 | 45 | ||
diff --git a/fs/ext3/xattr_trusted.c b/fs/ext3/xattr_trusted.c index d75727cc67fa..206cc66dc285 100644 --- a/fs/ext3/xattr_trusted.c +++ b/fs/ext3/xattr_trusted.c | |||
@@ -32,7 +32,7 @@ ext3_xattr_trusted_get(struct dentry *dentry, const char *name, | |||
32 | { | 32 | { |
33 | if (strcmp(name, "") == 0) | 33 | if (strcmp(name, "") == 0) |
34 | return -EINVAL; | 34 | return -EINVAL; |
35 | return ext3_xattr_get(dentry->d_inode, EXT3_XATTR_INDEX_TRUSTED, | 35 | return ext3_xattr_get(d_inode(dentry), EXT3_XATTR_INDEX_TRUSTED, |
36 | name, buffer, size); | 36 | name, buffer, size); |
37 | } | 37 | } |
38 | 38 | ||
@@ -42,7 +42,7 @@ ext3_xattr_trusted_set(struct dentry *dentry, const char *name, | |||
42 | { | 42 | { |
43 | if (strcmp(name, "") == 0) | 43 | if (strcmp(name, "") == 0) |
44 | return -EINVAL; | 44 | return -EINVAL; |
45 | return ext3_xattr_set(dentry->d_inode, EXT3_XATTR_INDEX_TRUSTED, name, | 45 | return ext3_xattr_set(d_inode(dentry), EXT3_XATTR_INDEX_TRUSTED, name, |
46 | value, size, flags); | 46 | value, size, flags); |
47 | } | 47 | } |
48 | 48 | ||
diff --git a/fs/ext3/xattr_user.c b/fs/ext3/xattr_user.c index 5612af3567e0..021508ad1616 100644 --- a/fs/ext3/xattr_user.c +++ b/fs/ext3/xattr_user.c | |||
@@ -34,7 +34,7 @@ ext3_xattr_user_get(struct dentry *dentry, const char *name, void *buffer, | |||
34 | return -EINVAL; | 34 | return -EINVAL; |
35 | if (!test_opt(dentry->d_sb, XATTR_USER)) | 35 | if (!test_opt(dentry->d_sb, XATTR_USER)) |
36 | return -EOPNOTSUPP; | 36 | return -EOPNOTSUPP; |
37 | return ext3_xattr_get(dentry->d_inode, EXT3_XATTR_INDEX_USER, | 37 | return ext3_xattr_get(d_inode(dentry), EXT3_XATTR_INDEX_USER, |
38 | name, buffer, size); | 38 | name, buffer, size); |
39 | } | 39 | } |
40 | 40 | ||
@@ -46,7 +46,7 @@ ext3_xattr_user_set(struct dentry *dentry, const char *name, | |||
46 | return -EINVAL; | 46 | return -EINVAL; |
47 | if (!test_opt(dentry->d_sb, XATTR_USER)) | 47 | if (!test_opt(dentry->d_sb, XATTR_USER)) |
48 | return -EOPNOTSUPP; | 48 | return -EOPNOTSUPP; |
49 | return ext3_xattr_set(dentry->d_inode, EXT3_XATTR_INDEX_USER, | 49 | return ext3_xattr_set(d_inode(dentry), EXT3_XATTR_INDEX_USER, |
50 | name, value, size, flags); | 50 | name, value, size, flags); |
51 | } | 51 | } |
52 | 52 | ||