]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
xfs: kill vn_atime_* helpers.
authorChristoph Hellwig <hch@lst.de>
Mon, 16 Mar 2009 07:24:46 +0000 (08:24 +0100)
committerChristoph Hellwig <hch@brick.lst.de>
Mon, 16 Mar 2009 07:24:46 +0000 (08:24 +0100)
Two out of three are unused already, and the third is better done open-coded
with a comment describing what's going on here.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <david@fromorbit.com>
fs/xfs/linux-2.6/xfs_vnode.h
fs/xfs/xfs_itable.c

index ea4675c48209de7ee3f659f94b1f665e792678fa..de9dc747b451f25cf669c69886fe25644239f38a 100644 (file)
@@ -57,25 +57,6 @@ static inline int VN_BAD(struct inode *vp)
        return is_bad_inode(vp);
 }
 
-/*
- * Extracting atime values in various formats
- */
-static inline void vn_atime_to_bstime(struct inode *vp, xfs_bstime_t *bs_atime)
-{
-       bs_atime->tv_sec = vp->i_atime.tv_sec;
-       bs_atime->tv_nsec = vp->i_atime.tv_nsec;
-}
-
-static inline void vn_atime_to_timespec(struct inode *vp, struct timespec *ts)
-{
-       *ts = vp->i_atime;
-}
-
-static inline void vn_atime_to_time_t(struct inode *vp, time_t *tt)
-{
-       *tt = vp->i_atime.tv_sec;
-}
-
 /*
  * Some useful predicates.
  */
index cf98a805ec90308651303af993572dd75c0827a0..24f1d139a636570989871097741769067dbd5447 100644 (file)
@@ -83,7 +83,12 @@ xfs_bulkstat_one_iget(
        buf->bs_uid = dic->di_uid;
        buf->bs_gid = dic->di_gid;
        buf->bs_size = dic->di_size;
-       vn_atime_to_bstime(VFS_I(ip), &buf->bs_atime);
+       /*
+        * We are reading the atime from the Linux inode because the
+        * dinode might not be uptodate.
+        */
+       buf->bs_atime.tv_sec = VFS_I(ip)->i_atime.tv_sec;
+       buf->bs_atime.tv_nsec = VFS_I(ip)->i_atime.tv_nsec;
        buf->bs_mtime.tv_sec = dic->di_mtime.t_sec;
        buf->bs_mtime.tv_nsec = dic->di_mtime.t_nsec;
        buf->bs_ctime.tv_sec = dic->di_ctime.t_sec;