aboutsummaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/xattr_security.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2015-03-17 18:25:59 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2015-04-15 15:06:57 -0400
commit2b0143b5c986be1ce8408b3aadc4709e0a94429d (patch)
tree98b1dee70f3d5d9ac9309f4638e41864ddcd0952 /fs/reiserfs/xattr_security.c
parentce0b16ddf18df35026164fda4a642ef10c01f442 (diff)
VFS: normal filesystems (and lustre): d_inode() annotations
that's the bulk of filesystem drivers dealing with inodes of their own Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/reiserfs/xattr_security.c')
-rw-r--r--fs/reiserfs/xattr_security.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/reiserfs/xattr_security.c b/fs/reiserfs/xattr_security.c
index e7f8939a4cb5..9a3b0616f283 100644
--- a/fs/reiserfs/xattr_security.c
+++ b/fs/reiserfs/xattr_security.c
@@ -15,10 +15,10 @@ security_get(struct dentry *dentry, const char *name, void *buffer, size_t size,
15 if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX)) 15 if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX))
16 return -EINVAL; 16 return -EINVAL;
17 17
18 if (IS_PRIVATE(dentry->d_inode)) 18 if (IS_PRIVATE(d_inode(dentry)))
19 return -EPERM; 19 return -EPERM;
20 20
21 return reiserfs_xattr_get(dentry->d_inode, name, buffer, size); 21 return reiserfs_xattr_get(d_inode(dentry), name, buffer, size);
22} 22}
23 23
24static int 24static int
@@ -28,10 +28,10 @@ security_set(struct dentry *dentry, const char *name, const void *buffer,
28 if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX)) 28 if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX))
29 return -EINVAL; 29 return -EINVAL;
30 30
31 if (IS_PRIVATE(dentry->d_inode)) 31 if (IS_PRIVATE(d_inode(dentry)))
32 return -EPERM; 32 return -EPERM;
33 33
34 return reiserfs_xattr_set(dentry->d_inode, name, buffer, size, flags); 34 return reiserfs_xattr_set(d_inode(dentry), name, buffer, size, flags);
35} 35}
36 36
37static size_t security_list(struct dentry *dentry, char *list, size_t list_len, 37static size_t security_list(struct dentry *dentry, char *list, size_t list_len,
@@ -39,7 +39,7 @@ static size_t security_list(struct dentry *dentry, char *list, size_t list_len,
39{ 39{
40 const size_t len = namelen + 1; 40 const size_t len = namelen + 1;
41 41
42 if (IS_PRIVATE(dentry->d_inode)) 42 if (IS_PRIVATE(d_inode(dentry)))
43 return 0; 43 return 0;
44 44
45 if (list && len <= list_len) { 45 if (list && len <= list_len) {