diff options
Diffstat (limited to 'fs/xfs/xfs_itable.c')
-rw-r--r-- | fs/xfs/xfs_itable.c | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/fs/xfs/xfs_itable.c b/fs/xfs/xfs_itable.c index 751e94fe1f77..9720c54bbed0 100644 --- a/fs/xfs/xfs_itable.c +++ b/fs/xfs/xfs_itable.c | |||
@@ -62,7 +62,6 @@ xfs_bulkstat_one_int( | |||
62 | { | 62 | { |
63 | struct xfs_icdinode *dic; /* dinode core info pointer */ | 63 | struct xfs_icdinode *dic; /* dinode core info pointer */ |
64 | struct xfs_inode *ip; /* incore inode pointer */ | 64 | struct xfs_inode *ip; /* incore inode pointer */ |
65 | struct inode *inode; | ||
66 | struct xfs_bstat *buf; /* return buffer */ | 65 | struct xfs_bstat *buf; /* return buffer */ |
67 | int error = 0; /* error value */ | 66 | int error = 0; /* error value */ |
68 | 67 | ||
@@ -86,7 +85,6 @@ xfs_bulkstat_one_int( | |||
86 | ASSERT(ip->i_imap.im_blkno != 0); | 85 | ASSERT(ip->i_imap.im_blkno != 0); |
87 | 86 | ||
88 | dic = &ip->i_d; | 87 | dic = &ip->i_d; |
89 | inode = VFS_I(ip); | ||
90 | 88 | ||
91 | /* xfs_iget returns the following without needing | 89 | /* xfs_iget returns the following without needing |
92 | * further change. | 90 | * further change. |
@@ -99,19 +97,12 @@ xfs_bulkstat_one_int( | |||
99 | buf->bs_uid = dic->di_uid; | 97 | buf->bs_uid = dic->di_uid; |
100 | buf->bs_gid = dic->di_gid; | 98 | buf->bs_gid = dic->di_gid; |
101 | buf->bs_size = dic->di_size; | 99 | buf->bs_size = dic->di_size; |
102 | 100 | buf->bs_atime.tv_sec = dic->di_atime.t_sec; | |
103 | /* | 101 | buf->bs_atime.tv_nsec = dic->di_atime.t_nsec; |
104 | * We need to read the timestamps from the Linux inode because | 102 | buf->bs_mtime.tv_sec = dic->di_mtime.t_sec; |
105 | * the VFS keeps writing directly into the inode structure instead | 103 | buf->bs_mtime.tv_nsec = dic->di_mtime.t_nsec; |
106 | * of telling us about the updates. | 104 | buf->bs_ctime.tv_sec = dic->di_ctime.t_sec; |
107 | */ | 105 | buf->bs_ctime.tv_nsec = dic->di_ctime.t_nsec; |
108 | buf->bs_atime.tv_sec = inode->i_atime.tv_sec; | ||
109 | buf->bs_atime.tv_nsec = inode->i_atime.tv_nsec; | ||
110 | buf->bs_mtime.tv_sec = inode->i_mtime.tv_sec; | ||
111 | buf->bs_mtime.tv_nsec = inode->i_mtime.tv_nsec; | ||
112 | buf->bs_ctime.tv_sec = inode->i_ctime.tv_sec; | ||
113 | buf->bs_ctime.tv_nsec = inode->i_ctime.tv_nsec; | ||
114 | |||
115 | buf->bs_xflags = xfs_ip2xflags(ip); | 106 | buf->bs_xflags = xfs_ip2xflags(ip); |
116 | buf->bs_extsize = dic->di_extsize << mp->m_sb.sb_blocklog; | 107 | buf->bs_extsize = dic->di_extsize << mp->m_sb.sb_blocklog; |
117 | buf->bs_extents = dic->di_nextents; | 108 | buf->bs_extents = dic->di_nextents; |