mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 1/2] FAT: set MS_NOATIME to msdos
Date: Tue, 22 Mar 2005 03:17:47 +0900	[thread overview]
Message-ID: <87mzsw2790.fsf@devron.myhome.or.jp> (raw)

Hi,

These patches is fixes and improvements for ->adate of msdos.

Please apply.
-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>



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 <werner@almesberger.net>
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
---

 fs/fat/inode.c   |    3 ++-
 fs/msdos/namei.c |    1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff -puN fs/fat/inode.c~fat_msdos-use-noatime fs/fat/inode.c
--- linux-2.6.11/fs/fat/inode.c~fat_msdos-use-noatime	2005-03-16 11:11:45.000000000 +0900
+++ linux-2.6.11-hirofumi/fs/fat/inode.c	2005-03-16 11:13:30.000000000 +0900
@@ -431,7 +431,8 @@ static void __exit fat_destroy_inodecach
 
 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 -puN fs/msdos/namei.c~fat_msdos-use-noatime fs/msdos/namei.c
--- linux-2.6.11/fs/msdos/namei.c~fat_msdos-use-noatime	2005-03-16 11:12:11.000000000 +0900
+++ linux-2.6.11-hirofumi/fs/msdos/namei.c	2005-03-16 11:13:38.000000000 +0900
@@ -671,6 +671,7 @@ static int msdos_fill_super(struct super
 	if (res)
 		return res;
 
+	sb->s_flags |= MS_NOATIME;
 	sb->s_root->d_op = &msdos_dentry_operations;
 	return 0;
 }
_

                 reply	other threads:[~2005-03-21 18:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87mzsw2790.fsf@devron.myhome.or.jp \
    --to=hirofumi@mail.parknet.co.jp \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.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

all inboxes | Powered by JetHome®