From: Andrew Morton <akpm@zip.com.au>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: [patch 3/19] update_atime cleanup
Date: Sun, 16 Jun 2002 23:51:18 -0700 [thread overview]
Message-ID: <3D0D86E6.6164E1ED@zip.com.au> (raw)
Remove unneeded do_update_atime(), and convert update_atime() to C.
--- 2.5.22/fs/inode.c~update_atime-cleanup Sun Jun 16 22:50:17 2002
+++ 2.5.22-akpm/fs/inode.c Sun Jun 16 22:50:17 2002
@@ -913,16 +913,6 @@ int bmap(struct inode * inode, int block
return res;
}
-static inline void do_atime_update(struct inode *inode)
-{
- unsigned long time = CURRENT_TIME;
- if (inode->i_atime != time) {
- inode->i_atime = time;
- mark_inode_dirty_sync(inode);
- }
-}
-
-
/**
* update_atime - update the access time
* @inode: inode accessed
@@ -932,15 +922,19 @@ static inline void do_atime_update(struc
* as well as the "noatime" flag and inode specific "noatime" markers.
*/
-void update_atime (struct inode *inode)
+void update_atime(struct inode *inode)
{
if (inode->i_atime == CURRENT_TIME)
return;
- if ( IS_NOATIME (inode) ) return;
- if ( IS_NODIRATIME (inode) && S_ISDIR (inode->i_mode) ) return;
- if ( IS_RDONLY (inode) ) return;
- do_atime_update(inode);
-} /* End Function update_atime */
+ if (IS_NOATIME(inode))
+ return;
+ if (IS_NODIRATIME(inode) && S_ISDIR(inode->i_mode))
+ return;
+ if (IS_RDONLY(inode))
+ return;
+ inode->i_atime = CURRENT_TIME;
+ mark_inode_dirty_sync(inode);
+}
int inode_needs_sync(struct inode *inode)
{
-
reply other threads:[~2002-06-17 6:48 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=3D0D86E6.6164E1ED@zip.com.au \
--to=akpm@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/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