aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 37781d6fe045..b47767c72ce3 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -16,6 +16,7 @@
16#include <linux/bio.h> 16#include <linux/bio.h>
17#include <linux/module.h> 17#include <linux/module.h>
18#include <linux/stringify.h> 18#include <linux/stringify.h>
19#include <linux/gfp.h>
19#include <linux/bsg.h> 20#include <linux/bsg.h>
20#include <linux/smp.h> 21#include <linux/smp.h>
21 22
@@ -873,15 +874,15 @@ static inline struct request *blk_map_queue_find_tag(struct blk_queue_tag *bqt,
873} 874}
874 875
875extern int blkdev_issue_flush(struct block_device *, sector_t *); 876extern int blkdev_issue_flush(struct block_device *, sector_t *);
876extern int blkdev_issue_discard(struct block_device *, sector_t sector, 877extern int blkdev_issue_discard(struct block_device *,
877 unsigned nr_sects); 878 sector_t sector, sector_t nr_sects, gfp_t);
878 879
879static inline int sb_issue_discard(struct super_block *sb, 880static inline int sb_issue_discard(struct super_block *sb,
880 sector_t block, unsigned nr_blocks) 881 sector_t block, sector_t nr_blocks)
881{ 882{
882 block <<= (sb->s_blocksize_bits - 9); 883 block <<= (sb->s_blocksize_bits - 9);
883 nr_blocks <<= (sb->s_blocksize_bits - 9); 884 nr_blocks <<= (sb->s_blocksize_bits - 9);
884 return blkdev_issue_discard(sb->s_bdev, block, nr_blocks); 885 return blkdev_issue_discard(sb->s_bdev, block, nr_blocks, GFP_KERNEL);
885} 886}
886 887
887/* 888/*