[PATCH 05/21] fat: use generic_file_llseek() for directory
From: OGAWA Hirofumi
Date: Wed Oct 15 2008 - 10:10:42 EST
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@xxxxxxxxxxxxxxxxxx>
---
fs/fat/dir.c | 1 +
1 file changed, 1 insertion(+)
diff -puN fs/fat/dir.c~fat_use-generic_file_llseek fs/fat/dir.c
--- linux-2.6/fs/fat/dir.c~fat_use-generic_file_llseek 2008-08-29 11:59:44.000000000 +0900
+++ linux-2.6-hirofumi/fs/fat/dir.c 2008-09-01 20:07:19.000000000 +0900
@@ -832,6 +832,7 @@ static long fat_compat_dir_ioctl(struct
#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,
_
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/