]> bbs.cooldavid.org Git - net-next-2.6.git/commit
xfs: remove stale parameter from ->iop_unpin method
authorDave Chinner <dchinner@redhat.com>
Mon, 8 Mar 2010 00:26:03 +0000 (11:26 +1100)
committerAlex Elder <aelder@sgi.com>
Wed, 19 May 2010 14:58:08 +0000 (09:58 -0500)
commit8e123850863366b738d6dfb9a84045018ff038fc
treeffa0185553c55d235b920e5ff384310be33034c6
parent4aaf15d1aa9673dd2cc45c48957c946cb4aa2694
xfs: remove stale parameter from ->iop_unpin method

The staleness of a object being unpinned can be directly derived
from the object itself - there is no need to extract it from the
object then pass it as a parameter into IOP_UNPIN().

This means we can kill the XFS_LID_BUF_STALE flag - it is set,
checked and cleared in the same places XFS_BLI_STALE flag in the
xfs_buf_log_item so it is now redundant and hence safe to remove.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/quota/xfs_dquot_item.c
fs/xfs/xfs_buf_item.c
fs/xfs/xfs_extfree_item.c
fs/xfs/xfs_inode_item.c
fs/xfs/xfs_trans.c
fs/xfs/xfs_trans.h
fs/xfs/xfs_trans_buf.c