aboutsummaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/xattr_security.c
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.com>2009-03-30 14:02:32 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-03-30 15:16:37 -0400
commit6dfede696391133eadd7ce90b61c9573ee6e5a90 (patch)
tree2051bfc5108d0e7592b8738e43f4ae972d398ccd /fs/reiserfs/xattr_security.c
parent010f5a21a323e7383e067009a7785462883fe5ea (diff)
reiserfs: remove IS_PRIVATE helpers
There are a number of helper functions for marking a reiserfs inode private that were leftover from reiserfs did its own thing wrt to private inodes. S_PRIVATE has been in the kernel for some time, so this patch removes the helpers and uses IS_PRIVATE instead. Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/reiserfs/xattr_security.c')
-rw-r--r--fs/reiserfs/xattr_security.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/reiserfs/xattr_security.c b/fs/reiserfs/xattr_security.c
index 056008db1377..1958b361c35d 100644
--- a/fs/reiserfs/xattr_security.c
+++ b/fs/reiserfs/xattr_security.c
@@ -12,7 +12,7 @@ security_get(struct inode *inode, const char *name, void *buffer, size_t size)
12 if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX)) 12 if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX))
13 return -EINVAL; 13 return -EINVAL;
14 14
15 if (is_reiserfs_priv_object(inode)) 15 if (IS_PRIVATE(inode))
16 return -EPERM; 16 return -EPERM;
17 17
18 return reiserfs_xattr_get(inode, name, buffer, size); 18 return reiserfs_xattr_get(inode, name, buffer, size);
@@ -25,7 +25,7 @@ security_set(struct inode *inode, const char *name, const void *buffer,
25 if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX)) 25 if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX))
26 return -EINVAL; 26 return -EINVAL;
27 27
28 if (is_reiserfs_priv_object(inode)) 28 if (IS_PRIVATE(inode))
29 return -EPERM; 29 return -EPERM;
30 30
31 return reiserfs_xattr_set(inode, name, buffer, size, flags); 31 return reiserfs_xattr_set(inode, name, buffer, size, flags);
@@ -36,7 +36,7 @@ static int security_del(struct inode *inode, const char *name)
36 if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX)) 36 if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX))
37 return -EINVAL; 37 return -EINVAL;
38 38
39 if (is_reiserfs_priv_object(inode)) 39 if (IS_PRIVATE(inode))
40 return -EPERM; 40 return -EPERM;
41 41
42 return 0; 42 return 0;
@@ -47,7 +47,7 @@ security_list(struct inode *inode, const char *name, int namelen, char *out)
47{ 47{
48 int len = namelen; 48 int len = namelen;
49 49
50 if (is_reiserfs_priv_object(inode)) 50 if (IS_PRIVATE(inode))
51 return 0; 51 return 0;
52 52
53 if (out) 53 if (out)