Commit 8118b0ca authored by Dave Jones's avatar Dave Jones

[PATCH] faster update_atime.

Another 2.4 forward port, original from Andrew Morton.
parent 5d16c626
...@@ -1196,6 +1196,8 @@ static inline void do_atime_update(struct inode *inode) ...@@ -1196,6 +1196,8 @@ static inline void do_atime_update(struct inode *inode)
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_NOATIME (inode) ) return;
if ( IS_NODIRATIME (inode) && S_ISDIR (inode->i_mode) ) return; if ( IS_NODIRATIME (inode) && S_ISDIR (inode->i_mode) ) return;
if ( IS_RDONLY (inode) ) return; if ( IS_RDONLY (inode) ) return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment