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)
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>

No differences found