diff options
Diffstat (limited to 'fs/reiserfs/xattr.c')
-rw-r--r-- | fs/reiserfs/xattr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/reiserfs/xattr.c b/fs/reiserfs/xattr.c index 04b06146bae2..4e781e697c90 100644 --- a/fs/reiserfs/xattr.c +++ b/fs/reiserfs/xattr.c | |||
@@ -266,7 +266,7 @@ static int reiserfs_for_each_xattr(struct inode *inode, | |||
266 | for (i = 0; !err && i < buf.count && buf.dentries[i]; i++) { | 266 | for (i = 0; !err && i < buf.count && buf.dentries[i]; i++) { |
267 | struct dentry *dentry = buf.dentries[i]; | 267 | struct dentry *dentry = buf.dentries[i]; |
268 | 268 | ||
269 | if (!S_ISDIR(dentry->d_inode->i_mode)) | 269 | if (!d_is_dir(dentry)) |
270 | err = action(dentry, data); | 270 | err = action(dentry, data); |
271 | 271 | ||
272 | dput(dentry); | 272 | dput(dentry); |
@@ -322,7 +322,7 @@ static int delete_one_xattr(struct dentry *dentry, void *data) | |||
322 | struct inode *dir = dentry->d_parent->d_inode; | 322 | struct inode *dir = dentry->d_parent->d_inode; |
323 | 323 | ||
324 | /* This is the xattr dir, handle specially. */ | 324 | /* This is the xattr dir, handle specially. */ |
325 | if (S_ISDIR(dentry->d_inode->i_mode)) | 325 | if (d_is_dir(dentry)) |
326 | return xattr_rmdir(dir, dentry); | 326 | return xattr_rmdir(dir, dentry); |
327 | 327 | ||
328 | return xattr_unlink(dir, dentry); | 328 | return xattr_unlink(dir, dentry); |