1
Add a struct vfsmount parameter to vfs_removexattr()
3
Signed-off-by: Tony Jones <tonyj@suse.de>
4
Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
7
===================================================================
10
@@ -1989,7 +1989,8 @@ nfsd_set_posix_acl(struct svc_fh *fhp, i
11
if (!S_ISDIR(inode->i_mode) && type == ACL_TYPE_DEFAULT)
14
- error = vfs_removexattr(fhp->fh_dentry, name);
15
+ error = vfs_removexattr(fhp->fh_dentry,
16
+ fhp->fh_export->ex_mnt, name);
17
if (error == -ENODATA)
21
===================================================================
24
@@ -166,7 +166,7 @@ vfs_listxattr(struct dentry *dentry, str
25
EXPORT_SYMBOL_GPL(vfs_listxattr);
28
-vfs_removexattr(struct dentry *dentry, char *name)
29
+vfs_removexattr(struct dentry *dentry, struct vfsmount *mnt, char *name)
31
struct inode *inode = dentry->d_inode;
33
@@ -437,7 +437,7 @@ sys_flistxattr(int fd, char __user *list
34
* Extended attribute REMOVE operations
37
-removexattr(struct dentry *d, char __user *name)
38
+removexattr(struct dentry *dentry, struct vfsmount *mnt, char __user *name)
41
char kname[XATTR_NAME_MAX + 1];
42
@@ -448,7 +448,7 @@ removexattr(struct dentry *d, char __use
46
- return vfs_removexattr(d, kname);
47
+ return vfs_removexattr(dentry, mnt, kname);
51
@@ -460,7 +460,7 @@ sys_removexattr(char __user *path, char
52
error = user_path_walk(path, &nd);
55
- error = removexattr(nd.dentry, name);
56
+ error = removexattr(nd.dentry, nd.mnt, name);
60
@@ -474,7 +474,7 @@ sys_lremovexattr(char __user *path, char
61
error = user_path_walk_link(path, &nd);
64
- error = removexattr(nd.dentry, name);
65
+ error = removexattr(nd.dentry, nd.mnt, name);
69
@@ -491,7 +491,7 @@ sys_fremovexattr(int fd, char __user *na
71
dentry = f->f_path.dentry;
72
audit_inode(NULL, dentry->d_inode);
73
- error = removexattr(dentry, name);
74
+ error = removexattr(dentry, f->f_path.mnt, name);
78
Index: b/include/linux/xattr.h
79
===================================================================
80
--- a/include/linux/xattr.h
81
+++ b/include/linux/xattr.h
82
@@ -52,7 +52,7 @@ ssize_t vfs_listxattr(struct dentry *d,
84
int vfs_setxattr(struct dentry *, struct vfsmount *, char *, void *, size_t,
86
-int vfs_removexattr(struct dentry *, char *);
87
+int vfs_removexattr(struct dentry *, struct vfsmount *, char *);
89
ssize_t generic_getxattr(struct dentry *dentry, const char *name, void *buffer, size_t size);
90
ssize_t generic_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size);