diff options
author | Richard Knutsson <ricknu-0@student.ltu.se> | 2006-10-01 02:27:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-01 03:39:19 -0400 |
commit | 4d81715fc5dfa1680ad47d7edf3ac4a74c5bf104 (patch) | |
tree | ec5de5f1e7aa18911fe76957e106fc3492048e86 /fs/jfs/xattr.c | |
parent | c49c31115067bc7c9a51ffdc735a515151dfa3eb (diff) |
[PATCH] fs/jfs: Conversion to generic boolean
Conversion of booleans to: generic-boolean.patch (2006-08-23)
Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
Cc: Dave Kleikamp <shaggy@austin.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/jfs/xattr.c')
-rw-r--r-- | fs/jfs/xattr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/jfs/xattr.c b/fs/jfs/xattr.c index 9bc5b7c055ce..7a10e1928961 100644 --- a/fs/jfs/xattr.c +++ b/fs/jfs/xattr.c | |||
@@ -97,26 +97,26 @@ static inline int is_os2_xattr(struct jfs_ea *ea) | |||
97 | */ | 97 | */ |
98 | if ((ea->namelen >= XATTR_SYSTEM_PREFIX_LEN) && | 98 | if ((ea->namelen >= XATTR_SYSTEM_PREFIX_LEN) && |
99 | !strncmp(ea->name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN)) | 99 | !strncmp(ea->name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN)) |
100 | return FALSE; | 100 | return false; |
101 | /* | 101 | /* |
102 | * Check for "user." | 102 | * Check for "user." |
103 | */ | 103 | */ |
104 | if ((ea->namelen >= XATTR_USER_PREFIX_LEN) && | 104 | if ((ea->namelen >= XATTR_USER_PREFIX_LEN) && |
105 | !strncmp(ea->name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN)) | 105 | !strncmp(ea->name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN)) |
106 | return FALSE; | 106 | return false; |
107 | /* | 107 | /* |
108 | * Check for "security." | 108 | * Check for "security." |
109 | */ | 109 | */ |
110 | if ((ea->namelen >= XATTR_SECURITY_PREFIX_LEN) && | 110 | if ((ea->namelen >= XATTR_SECURITY_PREFIX_LEN) && |
111 | !strncmp(ea->name, XATTR_SECURITY_PREFIX, | 111 | !strncmp(ea->name, XATTR_SECURITY_PREFIX, |
112 | XATTR_SECURITY_PREFIX_LEN)) | 112 | XATTR_SECURITY_PREFIX_LEN)) |
113 | return FALSE; | 113 | return false; |
114 | /* | 114 | /* |
115 | * Check for "trusted." | 115 | * Check for "trusted." |
116 | */ | 116 | */ |
117 | if ((ea->namelen >= XATTR_TRUSTED_PREFIX_LEN) && | 117 | if ((ea->namelen >= XATTR_TRUSTED_PREFIX_LEN) && |
118 | !strncmp(ea->name, XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN)) | 118 | !strncmp(ea->name, XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN)) |
119 | return FALSE; | 119 | return false; |
120 | /* | 120 | /* |
121 | * Add any other valid namespace prefixes here | 121 | * Add any other valid namespace prefixes here |
122 | */ | 122 | */ |
@@ -124,7 +124,7 @@ static inline int is_os2_xattr(struct jfs_ea *ea) | |||
124 | /* | 124 | /* |
125 | * We assume it's OS/2's flat namespace | 125 | * We assume it's OS/2's flat namespace |
126 | */ | 126 | */ |
127 | return TRUE; | 127 | return true; |
128 | } | 128 | } |
129 | 129 | ||
130 | static inline int name_size(struct jfs_ea *ea) | 130 | static inline int name_size(struct jfs_ea *ea) |