diff options
Diffstat (limited to 'fs/xattr.c')
-rw-r--r-- | fs/xattr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/xattr.c b/fs/xattr.c index 93dee70a1dbe..6acd5c63da91 100644 --- a/fs/xattr.c +++ b/fs/xattr.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/security.h> | 16 | #include <linux/security.h> |
17 | #include <linux/syscalls.h> | 17 | #include <linux/syscalls.h> |
18 | #include <linux/module.h> | 18 | #include <linux/module.h> |
19 | #include <linux/fsnotify.h> | ||
19 | #include <asm/uaccess.h> | 20 | #include <asm/uaccess.h> |
20 | 21 | ||
21 | /* | 22 | /* |
@@ -57,8 +58,10 @@ setxattr(struct dentry *d, char __user *name, void __user *value, | |||
57 | if (error) | 58 | if (error) |
58 | goto out; | 59 | goto out; |
59 | error = d->d_inode->i_op->setxattr(d, kname, kvalue, size, flags); | 60 | error = d->d_inode->i_op->setxattr(d, kname, kvalue, size, flags); |
60 | if (!error) | 61 | if (!error) { |
62 | fsnotify_xattr(d); | ||
61 | security_inode_post_setxattr(d, kname, kvalue, size, flags); | 63 | security_inode_post_setxattr(d, kname, kvalue, size, flags); |
64 | } | ||
62 | out: | 65 | out: |
63 | up(&d->d_inode->i_sem); | 66 | up(&d->d_inode->i_sem); |
64 | } | 67 | } |