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)
{
-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Jun 23 2002 - 22:00:12 EST