From: Werner Almesberger <werner@almesberger.net>
To: hirofumi@mail.parknet.co.jp
Cc: linux-fsdevel@vger.kernel.org
Subject: [RFC] set MS_NOATIME on FAT ?
Date: Mon, 14 Mar 2005 23:20:59 -0300 [thread overview]
Message-ID: <20050314232059.R12802@almesberger.net> (raw)
Hi,
as far as I can tell, none of FAT or its offsprings use atime, so
perhaps fs/fat/inode.c should just set MS_NOATIME, so that we don't
get unnecessary "inode" writes ? (They hurt if you want to reduce
worst-case latency in the write path.)
Here's a patch for 2.6.11 (with some offset, because I pulled it
from a larger patch).
Does this look good ?
Thanks,
- Werner
---------------------------------- cut here -----------------------------------
Signed-off-by: Werner Almesberger <werner@almesberger.net>
--- linux-2.6.11-orig/fs/fat/inode.c Wed Mar 2 04:38:08 2005
+++ linux-2.6.11/fs/fat/inode.c Thu Mar 3 01:35:57 2005
@@ -413,7 +483,7 @@ static void __exit fat_destroy_inodecach
static int fat_remount(struct super_block *sb, int *flags, char *data)
{
- *flags |= MS_NODIRATIME;
+ *flags |= MS_NODIRATIME | MS_NOATIME;
return 0;
}
@@ -1058,7 +1128,7 @@ int fat_fill_super(struct super_block *s
sb->s_fs_info = sbi;
memset(sbi, 0, sizeof(struct msdos_sb_info));
- sb->s_flags |= MS_NODIRATIME;
+ sb->s_flags |= MS_NODIRATIME | MS_NOATIME;
sb->s_magic = MSDOS_SUPER_MAGIC;
sb->s_op = &fat_sops;
sb->s_export_op = &fat_export_ops;
--
_________________________________________________________________________
/ Werner Almesberger, Buenos Aires, Argentina werner@almesberger.net /
/_http://www.almesberger.net/____________________________________________/
next reply other threads:[~2005-03-15 2:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-15 2:20 Werner Almesberger [this message]
2005-03-15 3:56 ` [RFC] set MS_NOATIME on FAT ? OGAWA Hirofumi
2005-03-15 4:18 ` Werner Almesberger
2005-03-15 5:08 ` OGAWA Hirofumi
2005-03-15 11:04 ` Werner Almesberger
2005-03-15 15:58 ` OGAWA Hirofumi
2005-03-15 17:13 ` Werner Almesberger
2005-03-15 18:18 ` OGAWA Hirofumi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050314232059.R12802@almesberger.net \
--to=werner@almesberger.net \
--cc=hirofumi@mail.parknet.co.jp \
--cc=linux-fsdevel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox