mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +00:00
[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>
This commit is contained in:
parent
6e21828743
commit
c49c311150
28 changed files with 326 additions and 331 deletions
|
@ -142,13 +142,13 @@ typedef le32 NTFS_RECORD_TYPE;
|
|||
* operator! (-8
|
||||
*/
|
||||
|
||||
static inline BOOL __ntfs_is_magic(le32 x, NTFS_RECORD_TYPE r)
|
||||
static inline bool __ntfs_is_magic(le32 x, NTFS_RECORD_TYPE r)
|
||||
{
|
||||
return (x == r);
|
||||
}
|
||||
#define ntfs_is_magic(x, m) __ntfs_is_magic(x, magic_##m)
|
||||
|
||||
static inline BOOL __ntfs_is_magicp(le32 *p, NTFS_RECORD_TYPE r)
|
||||
static inline bool __ntfs_is_magicp(le32 *p, NTFS_RECORD_TYPE r)
|
||||
{
|
||||
return (*p == r);
|
||||
}
|
||||
|
@ -323,7 +323,7 @@ typedef le64 leMFT_REF;
|
|||
#define MREF_LE(x) ((unsigned long)(le64_to_cpu(x) & MFT_REF_MASK_CPU))
|
||||
#define MSEQNO_LE(x) ((u16)((le64_to_cpu(x) >> 48) & 0xffff))
|
||||
|
||||
#define IS_ERR_MREF(x) (((x) & 0x0000800000000000ULL) ? 1 : 0)
|
||||
#define IS_ERR_MREF(x) (((x) & 0x0000800000000000ULL) ? true : false)
|
||||
#define ERR_MREF(x) ((u64)((s64)(x)))
|
||||
#define MREF_ERR(x) ((int)((s64)(x)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue