From: Andy Lutomirski Date: Tue, 22 Mar 2016 21:25:04 +0000 (-0700) Subject: ext4: in ext4_dir_llseek, check syscall bitness directly X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=121cef8f17d80e97838ea2f88715417e675e4403;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ext4: in ext4_dir_llseek, check syscall bitness directly ext4 treats directory offsets differently for 32-bit and 64-bit callers. Check the caller type using in_compat_syscall, not is_compat_task. This changes behavior on SPARC slightly. Signed-off-by: Andy Lutomirski Cc: "Theodore Ts'o" Cc: Andreas Dilger Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/ext4/dir.c b/fs/ext4/dir.c index 33f5e2a50cf8..50ba27cbed03 100644 --- a/fs/ext4/dir.c +++ b/fs/ext4/dir.c @@ -285,7 +285,7 @@ errout: static inline int is_32bit_api(void) { #ifdef CONFIG_COMPAT - return is_compat_task(); + return in_compat_syscall(); #else return (BITS_PER_LONG == 32); #endif