aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ntfs/collate.h
diff options
context:
space:
mode:
authorRichard Knutsson <ricknu-0@student.ltu.se>2006-10-01 02:27:12 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-01 03:39:19 -0400
commitc49c31115067bc7c9a51ffdc735a515151dfa3eb (patch)
tree1ffeddacb5cf06fbdb8a1fc385eb9ee5f1c3174c /fs/ntfs/collate.h
parent6e21828743247270d09a86756a0c11702500dbfb (diff)
[PATCH] fs/ntfs: Conversion to generic boolean
Conversion of booleans to: generic-boolean.patch (2006-08-23) Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se> Signed-off-by: Anton Altaparmakov <aia21@cantab.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/ntfs/collate.h')
-rw-r--r--fs/ntfs/collate.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ntfs/collate.h b/fs/ntfs/collate.h
index e027f36fcc2f..aba83347e5fe 100644
--- a/fs/ntfs/collate.h
+++ b/fs/ntfs/collate.h
@@ -26,7 +26,7 @@
26#include "types.h" 26#include "types.h"
27#include "volume.h" 27#include "volume.h"
28 28
29static inline BOOL ntfs_is_collation_rule_supported(COLLATION_RULE cr) { 29static inline bool ntfs_is_collation_rule_supported(COLLATION_RULE cr) {
30 int i; 30 int i;
31 31
32 /* 32 /*
@@ -35,12 +35,12 @@ static inline BOOL ntfs_is_collation_rule_supported(COLLATION_RULE cr) {
35 * now. 35 * now.
36 */ 36 */
37 if (unlikely(cr != COLLATION_BINARY && cr != COLLATION_NTOFS_ULONG)) 37 if (unlikely(cr != COLLATION_BINARY && cr != COLLATION_NTOFS_ULONG))
38 return FALSE; 38 return false;
39 i = le32_to_cpu(cr); 39 i = le32_to_cpu(cr);
40 if (likely(((i >= 0) && (i <= 0x02)) || 40 if (likely(((i >= 0) && (i <= 0x02)) ||
41 ((i >= 0x10) && (i <= 0x13)))) 41 ((i >= 0x10) && (i <= 0x13))))
42 return TRUE; 42 return true;
43 return FALSE; 43 return false;
44} 44}
45 45
46extern int ntfs_collate(ntfs_volume *vol, COLLATION_RULE cr, 46extern int ntfs_collate(ntfs_volume *vol, COLLATION_RULE cr,