GFS2: add barrier/nobarrier mount options
authorChristoph Hellwig <hch@lst.de>
Fri, 30 Oct 2009 07:03:27 +0000 (08:03 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 3 Dec 2009 11:55:54 +0000 (11:55 +0000)
commitf25934c5f88655a8d5c3c40a540daed1f0e6dedc
treea21e1ab167314292ffe2e3b319c8d5abf5faccd7
parentc14f5735e724cb5338ca8298d42b1658008a10d7
GFS2: add barrier/nobarrier mount options

Currently gfs2 issues barrier unconditionally.  There are various reasons
to disable them, be that just for testing or for stupid devices flushing
large battert backed caches.  Add a nobarrier option that matches xfs and
btrfs for this.  Also add a symmetric barrier option to turn it back on
at remount time.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/incore.h
fs/gfs2/ops_fstype.c
fs/gfs2/super.c