xfs: PF_FSTRANS should never be set in ->writepage
authorChristoph Hellwig <hch@lst.de>
Fri, 8 Jul 2011 12:34:05 +0000 (14:34 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 8 Jul 2011 12:34:05 +0000 (14:34 +0200)
commit680a647b49fa52de0b37b8bc58a3a8c4bc76b262
treea91fce973179b9e4d8ce77ca4f95fc8efca3255f
parent1316d4da3f632d5843d5a446203e73067dc40f09
xfs: PF_FSTRANS should never be set in ->writepage

Now that we reject direct reclaim in addition to always using GFP_NOFS
allocation there's no chance we'll ever end up in ->writepage with
PF_FSTRANS set.  Add a WARN_ON if we hit this case, and stop checking
if we'd actually need to start a transaction.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/linux-2.6/xfs_aops.c