diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-08-18 05:29:13 -0400 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2010-09-10 06:35:39 -0400 |
commit | f1e4d518c3beddf67f7722f3548eda0ec7006204 (patch) | |
tree | eafc3939ae2941ce8c543383a2e7cf569076e362 /fs/gfs2/rgrp.c | |
parent | c3b9a62c8f932f32a733d6b628f61f3f28345727 (diff) |
gfs2: replace barriers with explicit flush / FUA usage
Switch to the WRITE_FLUSH_FUA flag for log writes, remove the EOPNOTSUPP
detection for barriers and stop setting the barrier flag for discards.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Steven Whitehouse <swhiteho@redhat.com>
Acked-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'fs/gfs2/rgrp.c')
-rw-r--r-- | fs/gfs2/rgrp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index 171a744f8e45..379316472918 100644 --- a/fs/gfs2/rgrp.c +++ b/fs/gfs2/rgrp.c | |||
@@ -854,8 +854,7 @@ static void gfs2_rgrp_send_discards(struct gfs2_sbd *sdp, u64 offset, | |||
854 | if ((start + nr_sects) != blk) { | 854 | if ((start + nr_sects) != blk) { |
855 | rv = blkdev_issue_discard(bdev, start, | 855 | rv = blkdev_issue_discard(bdev, start, |
856 | nr_sects, GFP_NOFS, | 856 | nr_sects, GFP_NOFS, |
857 | BLKDEV_IFL_WAIT | | 857 | BLKDEV_IFL_WAIT); |
858 | BLKDEV_IFL_BARRIER); | ||
859 | if (rv) | 858 | if (rv) |
860 | goto fail; | 859 | goto fail; |
861 | nr_sects = 0; | 860 | nr_sects = 0; |
@@ -870,7 +869,7 @@ start_new_extent: | |||
870 | } | 869 | } |
871 | if (nr_sects) { | 870 | if (nr_sects) { |
872 | rv = blkdev_issue_discard(bdev, start, nr_sects, GFP_NOFS, | 871 | rv = blkdev_issue_discard(bdev, start, nr_sects, GFP_NOFS, |
873 | BLKDEV_IFL_WAIT | BLKDEV_IFL_BARRIER); | 872 | BLKDEV_IFL_WAIT); |
874 | if (rv) | 873 | if (rv) |
875 | goto fail; | 874 | goto fail; |
876 | } | 875 | } |