diff options
author | Dave Chinner <dchinner@redhat.com> | 2014-08-04 07:23:15 +0400 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-08-04 07:23:15 +0400 |
commit | 2667c6f935d979cea1ab7fa58568fd0fd725525f (patch) | |
tree | 09dd3853448c02801ad5c5fc8a1840b6fc947232 /fs/xfs/xfs_bmap_util.c | |
parent | eac152b4742ec5f1ed04d73d699ae2be3607d56b (diff) | |
download | linux-2667c6f935d979cea1ab7fa58568fd0fd725525f.tar.xz |
xfs: kill VN_CACHED
Only has 2 users, has outlived it's usefulness.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_bmap_util.c')
-rw-r--r-- | fs/xfs/xfs_bmap_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_bmap_util.c b/fs/xfs/xfs_bmap_util.c index 56f050efcac8..1b79b8c19c37 100644 --- a/fs/xfs/xfs_bmap_util.c +++ b/fs/xfs/xfs_bmap_util.c @@ -862,7 +862,7 @@ xfs_can_free_eofblocks(struct xfs_inode *ip, bool force) * have speculative prealloc/delalloc blocks to remove. */ if (VFS_I(ip)->i_size == 0 && - VN_CACHED(VFS_I(ip)) == 0 && + VFS_I(ip)->i_mapping->nrpages == 0 && ip->i_delayed_blks == 0) return false; @@ -1720,7 +1720,7 @@ xfs_swap_extents( truncate_pagecache_range(VFS_I(tip), 0, -1); /* Verify O_DIRECT for ftmp */ - if (VN_CACHED(VFS_I(tip)) != 0) { + if (VFS_I(tip)->i_mapping->nrpages) { error = -EINVAL; goto out_unlock; } |