diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-08-18 05:29:10 -0400 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2010-09-10 06:35:38 -0400 |
commit | 2cf6d26a354ab6362e301b5a323832b02867df47 (patch) | |
tree | dcc84f3422df777baa85f54870cda613262e74ca /fs/fat | |
parent | b372d360df6deaf79a58a02fa0cc0d7e0aa3e92f (diff) |
block: pass gfp_mask and flags to sb_issue_discard
We'll need to get rid of the BLKDEV_IFL_BARRIER flag, and to facilitate
that and to make the interface less confusing pass all flags explicitly.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'fs/fat')
-rw-r--r-- | fs/fat/fatent.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/fat/fatent.c b/fs/fat/fatent.c index 81184d3b75a3..3a56a82f5658 100644 --- a/fs/fat/fatent.c +++ b/fs/fat/fatent.c | |||
@@ -577,7 +577,9 @@ int fat_free_clusters(struct inode *inode, int cluster) | |||
577 | 577 | ||
578 | sb_issue_discard(sb, | 578 | sb_issue_discard(sb, |
579 | fat_clus_to_blknr(sbi, first_cl), | 579 | fat_clus_to_blknr(sbi, first_cl), |
580 | nr_clus * sbi->sec_per_clus); | 580 | nr_clus * sbi->sec_per_clus, |
581 | GFP_NOFS, | ||
582 | BLKDEV_IFL_WAIT | BLKDEV_IFL_BARRIER); | ||
581 | 583 | ||
582 | first_cl = cluster; | 584 | first_cl = cluster; |
583 | } | 585 | } |