projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
288ceb8
)
[IA64] Low byte of current->personality is not a bitmask.
author
Tony Luck
<tony.luck@intel.com>
Tue, 30 Aug 2005 21:59:24 +0000
(14:59 -0700)
committer
Tony Luck
<tony.luck@intel.com>
Tue, 30 Aug 2005 21:59:24 +0000
(14:59 -0700)
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>
include/asm-ia64/fcntl.h
patch
|
blob
|
blame
|
history
diff --git
a/include/asm-ia64/fcntl.h
b/include/asm-ia64/fcntl.h
index c9f8d835d0cc0860345312eff324beebdf7becd4..cee16ea1780aa6e9046bd2982ad9694b2188018d 100644
(file)
--- a/
include/asm-ia64/fcntl.h
+++ b/
include/asm-ia64/fcntl.h
@@
-81,6
+81,7
@@
struct flock {
#define F_LINUX_SPECIFIC_BASE 1024
-#define force_o_largefile() ( ! (current->personality & PER_LINUX32) )
+#define force_o_largefile() \
+ (personality(current->personality) != PER_LINUX32)
#endif /* _ASM_IA64_FCNTL_H */