xfs: only issues a cache flush on unmount if barriers are enabled
authorChristoph Hellwig <hch@infradead.org>
Tue, 3 Mar 2009 19:48:37 +0000 (14:48 -0500)
committerFelix Blyakher <felixb@sgi.com>
Fri, 6 Mar 2009 23:35:12 +0000 (17:35 -0600)
commitc141b2928fe20396a9ecdec85526e4b66ae96c90
treed708be285a392950e85aacf8a24e130431d9c240
parent7d46be4a25fdfb503c20bad60a618adebfe2ac5c
xfs: only issues a cache flush on unmount if barriers are enabled

Currently we unconditionally issue a flush from xfs_free_buftarg, but
since 2.6.29-rc1 this gives a warning in the style of

end_request: I/O error, dev vdb, sector 0

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Felix Blyakher <felixb@sgi.com>
fs/xfs/linux-2.6/xfs_buf.c
fs/xfs/linux-2.6/xfs_buf.h
fs/xfs/linux-2.6/xfs_super.c