[PATCH 2/2] xfs: remove xfs_ipin/xfs_iunpin
Dave Chinner
david at fromorbit.com
Thu Feb 18 15:04:26 CST 2010
On Thu, Feb 18, 2010 at 07:43:22AM -0500, Christoph Hellwig wrote:
> On Thu, Feb 18, 2010 at 10:00:33AM +1100, Dave Chinner wrote:
> > > + ASSERT(atomic_read(&->i_pincount) > 0);
> >
> > I don't think that compiles. ;)
>
> It does in fact compile for non-debug builds, but here's an updated
Very true...
> version that also compiles in a debug build:
>
> ---
>
> From: Christoph Hellwig <hch at lst.de>
> Subject: [PATCH 2/2] xfs: remove xfs_ipin/xfs_iunpin
>
> Inodes are only pinned/unpinned via the inode item methods, and lots of
> code relies on that fact. So remove the separate xfs_ipin/xfs_iunpin
> helpers and merge them into their only callers. This also fixes up
> various duplicate and/or incorrect comments.
>
> Signed-off-by: Christoph Hellwig <hch at lst.de>
Reviewed-by: Dave Chinner <david at fromorbit.com>
--
Dave Chinner
david at fromorbit.com
More information about the xfs
mailing list