summaryrefslogtreecommitdiffstats
path: root/fs/posix_acl.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2015-03-17 18:26:21 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2015-04-15 15:06:59 -0400
commitbb668734c4c960c8f61f017585b323b97e5f47b5 (patch)
treee9c90394fb8342aeccd1b337c2e7949c5c843bec /fs/posix_acl.c
parentdf2b1afde178f01c6a1b2ec285ca8bcfd4c66640 (diff)
VFS: assorted d_backing_inode() annotations
Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/posix_acl.c')
-rw-r--r--fs/posix_acl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/posix_acl.c b/fs/posix_acl.c
index 3a48bb789c9f..84bb65b83570 100644
--- a/fs/posix_acl.c
+++ b/fs/posix_acl.c
@@ -774,12 +774,12 @@ posix_acl_xattr_get(struct dentry *dentry, const char *name,
774 struct posix_acl *acl; 774 struct posix_acl *acl;
775 int error; 775 int error;
776 776
777 if (!IS_POSIXACL(dentry->d_inode)) 777 if (!IS_POSIXACL(d_backing_inode(dentry)))
778 return -EOPNOTSUPP; 778 return -EOPNOTSUPP;
779 if (d_is_symlink(dentry)) 779 if (d_is_symlink(dentry))
780 return -EOPNOTSUPP; 780 return -EOPNOTSUPP;
781 781
782 acl = get_acl(dentry->d_inode, type); 782 acl = get_acl(d_backing_inode(dentry), type);
783 if (IS_ERR(acl)) 783 if (IS_ERR(acl))
784 return PTR_ERR(acl); 784 return PTR_ERR(acl);
785 if (acl == NULL) 785 if (acl == NULL)
@@ -795,7 +795,7 @@ static int
795posix_acl_xattr_set(struct dentry *dentry, const char *name, 795posix_acl_xattr_set(struct dentry *dentry, const char *name,
796 const void *value, size_t size, int flags, int type) 796 const void *value, size_t size, int flags, int type)
797{ 797{
798 struct inode *inode = dentry->d_inode; 798 struct inode *inode = d_backing_inode(dentry);
799 struct posix_acl *acl = NULL; 799 struct posix_acl *acl = NULL;
800 int ret; 800 int ret;
801 801
@@ -834,7 +834,7 @@ posix_acl_xattr_list(struct dentry *dentry, char *list, size_t list_size,
834 const char *xname; 834 const char *xname;
835 size_t size; 835 size_t size;
836 836
837 if (!IS_POSIXACL(dentry->d_inode)) 837 if (!IS_POSIXACL(d_backing_inode(dentry)))
838 return -EOPNOTSUPP; 838 return -EOPNOTSUPP;
839 if (d_is_symlink(dentry)) 839 if (d_is_symlink(dentry))
840 return -EOPNOTSUPP; 840 return -EOPNOTSUPP;