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>
Wed, 4 Mar 2009 13:31:55 +0000 (07:31 -0600)
commitb79631330a653f568a2ac4eb4a32474c80e3fe77
tree4e8f3311b90005d8ff514828786172a353471502
parented93ec3907f063268ced18728d0653f6199d100c
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