diff options
author | Tony Luck <tony.luck@intel.com> | 2005-08-30 17:59:24 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2005-08-30 17:59:24 -0400 |
commit | ff67b59726a8cd3549b069dfa78de2f538d3b8e3 (patch) | |
tree | 0a587cec3a6bd4fdd53fcfb75f87bc45da5d1a7f /include/asm-ia64 | |
parent | 288ceb8f142249109fd2e9f1bf0492bd6ff6d892 (diff) |
[IA64] Low byte of current->personality is not a bitmask.
Peter Staubach pointed out that it is not correct to check
current->personality & PER_LINUX32 (this will have false
hits on several other personality values).
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include/asm-ia64')
-rw-r--r-- | include/asm-ia64/fcntl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-ia64/fcntl.h b/include/asm-ia64/fcntl.h index c9f8d835d0cc..cee16ea1780a 100644 --- a/include/asm-ia64/fcntl.h +++ b/include/asm-ia64/fcntl.h | |||
@@ -81,6 +81,7 @@ struct flock { | |||
81 | 81 | ||
82 | #define F_LINUX_SPECIFIC_BASE 1024 | 82 | #define F_LINUX_SPECIFIC_BASE 1024 |
83 | 83 | ||
84 | #define force_o_largefile() ( ! (current->personality & PER_LINUX32) ) | 84 | #define force_o_largefile() \ |
85 | (personality(current->personality) != PER_LINUX32) | ||
85 | 86 | ||
86 | #endif /* _ASM_IA64_FCNTL_H */ | 87 | #endif /* _ASM_IA64_FCNTL_H */ |