aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>2008-11-06 15:53:47 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2008-11-06 18:41:20 -0500
commit53472bc8f810d2fb507593ea03703670506a668d (patch)
treecdb700668fd466f79407234ff7c90b2b928ffb29 /fs
parent7decd1cb0305b97243f283fa7f4baf5fe613edeb (diff)
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 <hirofumi@mail.parknet.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/fat/dir.c1
1 files changed, 1 insertions, 0 deletions
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,
832#endif /* CONFIG_COMPAT */ 832#endif /* CONFIG_COMPAT */
833 833
834const struct file_operations fat_dir_operations = { 834const struct file_operations fat_dir_operations = {
835 .llseek = generic_file_llseek,
835 .read = generic_read_dir, 836 .read = generic_read_dir,
836 .readdir = fat_readdir, 837 .readdir = fat_readdir,
837 .ioctl = fat_dir_ioctl, 838 .ioctl = fat_dir_ioctl,