xfs: remove SYNC_BDFLUSH
authorChristoph Hellwig <hch@lst.de>
Mon, 8 Jun 2009 13:37:16 +0000 (15:37 +0200)
committerChristoph Hellwig <hch@brick.lst.de>
Mon, 8 Jun 2009 13:37:16 +0000 (15:37 +0200)
commit8b5403a6d772d340541cfb30a668fde119c40ac1
tree0a81b174351ca56555d7ccc53ecd76c0b27edcee
parentb0710ccc6d9fa8fb908b5f6d1b0782a09d80e24f
xfs: remove SYNC_BDFLUSH

SYNC_BDFLUSH is a leftover from IRIX and rather misnamed for todays
code.  Make xfs_sync_fsdata and xfs_dq_sync use the SYNC_TRYLOCK flag
for not blocking on logs just as the inode sync code already does.

For xfs_sync_fsdata it's a trivial 1:1 replacement, but for xfs_qm_sync
I use the opportunity to decouple the non-blocking lock case from the
different flushing modes, similar to the inode sync code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
fs/xfs/linux-2.6/xfs_sync.c
fs/xfs/linux-2.6/xfs_sync.h
fs/xfs/quota/xfs_qm.c