]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/gfs2/rgrp.c
Merge branch 'for-2.6.32' of git://git.kernel.dk/linux-2.6-block
[karo-tx-linux.git] / fs / gfs2 / rgrp.c
index 18d3a28554acab1719ed95a92c1221af0bc18ea2..28c590b7c9da07581bbea2dde237872a035902c0 100644 (file)
@@ -857,7 +857,8 @@ static void gfs2_rgrp_send_discards(struct gfs2_sbd *sdp, u64 offset,
                                        goto start_new_extent;
                                if ((start + nr_sects) != blk) {
                                        rv = blkdev_issue_discard(bdev, start,
-                                                           nr_sects, GFP_NOFS);
+                                                           nr_sects, GFP_NOFS,
+                                                           DISCARD_FL_BARRIER);
                                        if (rv)
                                                goto fail;
                                        nr_sects = 0;
@@ -871,7 +872,8 @@ start_new_extent:
                }
        }
        if (nr_sects) {
-               rv = blkdev_issue_discard(bdev, start, nr_sects, GFP_NOFS);
+               rv = blkdev_issue_discard(bdev, start, nr_sects, GFP_NOFS,
+                                        DISCARD_FL_BARRIER);
                if (rv)
                        goto fail;
        }