xfs: fix inode pincount check in fsync
authorChristoph Hellwig <hch@infradead.org>
Wed, 17 Feb 2010 19:34:57 +0000 (19:34 +0000)
committerAlex Elder <aelder@sgi.com>
Mon, 1 Mar 2010 22:35:10 +0000 (16:35 -0600)
commit024910cbac323ab2e5ad6d7fa7958799b04b9728
tree6902b06ec9307930e17964192f9e8bfdb750d3bd
parent77d7a0c2eeb285c9069e15396703d0cb9690ac50
xfs: fix inode pincount check in fsync

We need to hold the ilock to check the inode pincount safely.  While
we're at it also remove the check for ip->i_itemp->ili_last_lsn, a
pinned inode always has it set.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/linux-2.6/xfs_file.c
This page took 0.029713 seconds and 5 git commands to generate.