]> git.baikalelectronics.ru Git - kernel.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)
commit7de391cf9d5ef8d9bc530875512f6d69d938d49f
treeffa0185553c55d235b920e5ff384310be33034c6
parentda6a2d8b7fe6a8c54ac1e195499a22f0d3085b87
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