diff options
Diffstat (limited to 'fs/xattr.c')
-rw-r--r-- | fs/xattr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xattr.c b/fs/xattr.c index 0901bdc2ce24..38646132ab0e 100644 --- a/fs/xattr.c +++ b/fs/xattr.c | |||
@@ -268,7 +268,7 @@ sys_fsetxattr(int fd, char __user *name, void __user *value, | |||
268 | f = fget(fd); | 268 | f = fget(fd); |
269 | if (!f) | 269 | if (!f) |
270 | return error; | 270 | return error; |
271 | dentry = f->f_dentry; | 271 | dentry = f->f_path.dentry; |
272 | audit_inode(NULL, dentry->d_inode); | 272 | audit_inode(NULL, dentry->d_inode); |
273 | error = setxattr(dentry, name, value, size, flags); | 273 | error = setxattr(dentry, name, value, size, flags); |
274 | fput(f); | 274 | fput(f); |
@@ -351,7 +351,7 @@ sys_fgetxattr(int fd, char __user *name, void __user *value, size_t size) | |||
351 | f = fget(fd); | 351 | f = fget(fd); |
352 | if (!f) | 352 | if (!f) |
353 | return error; | 353 | return error; |
354 | error = getxattr(f->f_dentry, name, value, size); | 354 | error = getxattr(f->f_path.dentry, name, value, size); |
355 | fput(f); | 355 | fput(f); |
356 | return error; | 356 | return error; |
357 | } | 357 | } |
@@ -423,7 +423,7 @@ sys_flistxattr(int fd, char __user *list, size_t size) | |||
423 | f = fget(fd); | 423 | f = fget(fd); |
424 | if (!f) | 424 | if (!f) |
425 | return error; | 425 | return error; |
426 | error = listxattr(f->f_dentry, list, size); | 426 | error = listxattr(f->f_path.dentry, list, size); |
427 | fput(f); | 427 | fput(f); |
428 | return error; | 428 | return error; |
429 | } | 429 | } |
@@ -484,7 +484,7 @@ sys_fremovexattr(int fd, char __user *name) | |||
484 | f = fget(fd); | 484 | f = fget(fd); |
485 | if (!f) | 485 | if (!f) |
486 | return error; | 486 | return error; |
487 | dentry = f->f_dentry; | 487 | dentry = f->f_path.dentry; |
488 | audit_inode(NULL, dentry->d_inode); | 488 | audit_inode(NULL, dentry->d_inode); |
489 | error = removexattr(dentry, name); | 489 | error = removexattr(dentry, name); |
490 | fput(f); | 490 | fput(f); |