diff options
author | Christoph Hellwig <hch@infradead.org> | 2013-12-20 05:16:47 -0800 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-01-25 23:58:20 -0500 |
commit | f2963d4551e7f500025d687586a25a09ea28941e (patch) | |
tree | c119c05fc7d7596d19fd6904386419278bf8515c /fs/jffs2/fs.c | |
parent | b0a7ab5706647844e7a1b91b0c31cdb3bee1e1cc (diff) | |
download | linux-stable-f2963d4551e7f500025d687586a25a09ea28941e.tar.gz linux-stable-f2963d4551e7f500025d687586a25a09ea28941e.tar.bz2 linux-stable-f2963d4551e7f500025d687586a25a09ea28941e.zip |
jffs2: use generic posix ACL infrastructure
Also don't bother to set up a .get_acl method for symlinks as we do not
support access control (ACLs or even mode bits) for symlinks in Linux.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/jffs2/fs.c')
-rw-r--r-- | fs/jffs2/fs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/jffs2/fs.c b/fs/jffs2/fs.c index 09b3ed455724..a69e426435dd 100644 --- a/fs/jffs2/fs.c +++ b/fs/jffs2/fs.c @@ -190,15 +190,16 @@ int jffs2_do_setattr (struct inode *inode, struct iattr *iattr) int jffs2_setattr(struct dentry *dentry, struct iattr *iattr) { + struct inode *inode = dentry->d_inode; int rc; - rc = inode_change_ok(dentry->d_inode, iattr); + rc = inode_change_ok(inode, iattr); if (rc) return rc; - rc = jffs2_do_setattr(dentry->d_inode, iattr); + rc = jffs2_do_setattr(inode, iattr); if (!rc && (iattr->ia_valid & ATTR_MODE)) - rc = jffs2_acl_chmod(dentry->d_inode); + rc = posix_acl_chmod(inode, inode->i_mode); return rc; } |