diff options
author | Tim Shimmin <tes@sgi.com> | 2007-11-23 00:30:42 -0500 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-02-07 02:17:58 -0500 |
commit | e6a4b37f38dca6e86b2648d172946700ee921e12 (patch) | |
tree | a094d91f8b864a33735a54c12a792bb084f7c5be /fs/xfs/xfs_vnodeops.c | |
parent | f7b7c3673e6e225de337abe00e14dc048e44782b (diff) |
[XFS] Remove the BPCSHIFT and NB* based macros from XFS.
The BPCSHIFT based macros, btoc*, ctob*, offtoc* and ctooff are either not
used or don't need to be used. The NDPP, NDPP, NBBY macros don't need to
be used but instead are replaced directly by PAGE_SIZE and PAGE_CACHE_SIZE
where appropriate. Initial patch and motivation from Nicolas Kaiser.
SGI-PV: 971186
SGI-Modid: xfs-linux-melb:xfs-kern:30096a
Signed-off-by: Tim Shimmin <tes@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
-rw-r--r-- | fs/xfs/xfs_vnodeops.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index 5322d9fb5321..7f380e885a6f 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c | |||
@@ -4164,15 +4164,12 @@ xfs_free_file_space( | |||
4164 | vn_iowait(ip); /* wait for the completion of any pending DIOs */ | 4164 | vn_iowait(ip); /* wait for the completion of any pending DIOs */ |
4165 | } | 4165 | } |
4166 | 4166 | ||
4167 | rounding = max_t(uint, 1 << mp->m_sb.sb_blocklog, NBPP); | 4167 | rounding = max_t(uint, 1 << mp->m_sb.sb_blocklog, PAGE_CACHE_SIZE); |
4168 | ioffset = offset & ~(rounding - 1); | 4168 | ioffset = offset & ~(rounding - 1); |
4169 | 4169 | ||
4170 | if (VN_CACHED(vp) != 0) { | 4170 | if (VN_CACHED(vp) != 0) { |
4171 | xfs_inval_cached_trace(ip, ioffset, -1, | 4171 | xfs_inval_cached_trace(ip, ioffset, -1, ioffset, -1); |
4172 | ctooff(offtoct(ioffset)), -1); | 4172 | error = xfs_flushinval_pages(ip, ioffset, -1, FI_REMAPF_LOCKED); |
4173 | error = xfs_flushinval_pages(ip, | ||
4174 | ctooff(offtoct(ioffset)), | ||
4175 | -1, FI_REMAPF_LOCKED); | ||
4176 | if (error) | 4173 | if (error) |
4177 | goto out_unlock_iolock; | 4174 | goto out_unlock_iolock; |
4178 | } | 4175 | } |