diff options
author | Hugh Dickins <hugh@veritas.com> | 2008-09-11 10:57:55 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-10-09 08:56:17 +0200 |
commit | 3e6053d76dcbd92b2f9f4ad5ece9bce83149523e (patch) | |
tree | 0e7ab62872071c39e2475decb769b9715de75376 /include/linux/bio.h | |
parent | 4677735f03f5b6b6f2182f457a921855cadfb85b (diff) |
block: adjust blkdev_issue_discard for swap
Two mods to blkdev_issue_discard(), thinking ahead to its use on swap:
1. Add gfp_mask argument, so swap allocation can use it where GFP_KERNEL
might deadlock but GFP_NOIO is safe.
2. Enlarge nr_sects argument from unsigned to sector_t: unsigned long is
enough to cover a whole swap area, but sector_t suits any partition.
Change sb_issue_discard()'s nr_blocks to sector_t too; but no need seen
for a gfp_mask there, just pass GFP_KERNEL down to blkdev_issue_discard().
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux/bio.h')
0 files changed, 0 insertions, 0 deletions