aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/xattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/xattr.c')
-rw-r--r--fs/btrfs/xattr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/btrfs/xattr.c b/fs/btrfs/xattr.c
index e5d22f280956..a5303b871b13 100644
--- a/fs/btrfs/xattr.c
+++ b/fs/btrfs/xattr.c
@@ -372,7 +372,8 @@ int btrfs_removexattr(struct dentry *dentry, const char *name)
372} 372}
373 373
374int btrfs_xattr_security_init(struct btrfs_trans_handle *trans, 374int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
375 struct inode *inode, struct inode *dir) 375 struct inode *inode, struct inode *dir,
376 const struct qstr *qstr)
376{ 377{
377 int err; 378 int err;
378 size_t len; 379 size_t len;
@@ -380,7 +381,8 @@ int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
380 char *suffix; 381 char *suffix;
381 char *name; 382 char *name;
382 383
383 err = security_inode_init_security(inode, dir, &suffix, &value, &len); 384 err = security_inode_init_security(inode, dir, qstr, &suffix, &value,
385 &len);
384 if (err) { 386 if (err) {
385 if (err == -EOPNOTSUPP) 387 if (err == -EOPNOTSUPP)
386 return 0; 388 return 0;