From: OGAWA Hirofumi Date: Thu, 6 Nov 2008 20:53:47 +0000 (-0800) Subject: fat: use generic_file_llseek() for directory X-Git-Tag: v2.6.28-rc4~50 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=53472bc8f810d2fb507593ea03703670506a668d;p=linux-2.6-omap-h63xx.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 a601c6d45bc..931dd28b528 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,