From: OGAWA Hirofumi Date: Thu, 6 Nov 2008 20:53:47 +0000 (-0800) Subject: fat: use generic_file_llseek() for directory X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=53472bc8f810d2fb507593ea03703670506a668d;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git fat: use generic_file_llseek() for directory Since fat_dir_ioctl() was already fixed (i.e. called under ->i_mutex), and __fat_readdir() doesn't take BKL anymore. So, BKL for ->llseek() is pointless, and we have to use generic_file_llseek(). Signed-off-by: OGAWA Hirofumi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/fat/dir.c b/fs/fat/dir.c index a601c6d45bc0..931dd28b5289 100644 --- a/fs/fat/dir.c +++ b/fs/fat/dir.c @@ -832,6 +832,7 @@ static long fat_compat_dir_ioctl(struct file *filp, unsigned cmd, #endif /* CONFIG_COMPAT */ const struct file_operations fat_dir_operations = { + .llseek = generic_file_llseek, .read = generic_read_dir, .readdir = fat_readdir, .ioctl = fat_dir_ioctl,