ChangeSet 1.2231.1.170, 2005/03/28 20:03:42-08:00, [EMAIL PROTECTED]
[PATCH] FAT: set MS_NOATIME to msdos
MSDOS doesn't have atime, so this sets MS_NOATIME to msdos in order
that we
don't get unnecessary writes.
Signed-off-by: Werner Almesberger <[EMAIL PROTECTED]>
Signed-off-by: OGAWA Hirofumi <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
fat/inode.c | 3 ++-
msdos/namei.c | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff -Nru a/fs/fat/inode.c b/fs/fat/inode.c
--- a/fs/fat/inode.c 2005-03-28 21:43:59 -08:00
+++ b/fs/fat/inode.c 2005-03-28 21:43:59 -08:00
@@ -431,7 +431,8 @@
static int fat_remount(struct super_block *sb, int *flags, char *data)
{
- *flags |= MS_NODIRATIME;
+ struct msdos_sb_info *sbi = MSDOS_SB(sb);
+ *flags |= MS_NODIRATIME | (sbi->options.isvfat ? 0 : MS_NOATIME);
return 0;
}
diff -Nru a/fs/msdos/namei.c b/fs/msdos/namei.c
--- a/fs/msdos/namei.c 2005-03-28 21:43:59 -08:00
+++ b/fs/msdos/namei.c 2005-03-28 21:43:59 -08:00
@@ -671,6 +671,7 @@
if (res)
return res;
+ sb->s_flags |= MS_NOATIME;
sb->s_root->d_op = &msdos_dentry_operations;
return 0;
}
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html