Skip to contentSkip to conversation

block: correct documentation for blkdev_issue_discard() flags

PATCH In review Eric Biggers 2 participants 3 messages Jan 23, 2017 – Mar 24, 2017 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: correct documentation for blkdev_issue_discard() flags

From: Eric Biggers <[email protected]>

BLKDEV_IFL_* flags no longer exist; blkdev_issue_discard() now actually takes BLKDEV_DISCARD_* flags.

---
 block/blk-lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/blk-lib.c +1 -1
index ed89c8f4b2a0..463b76dd566f 100644
@@ -109,7 +109,7 @@ EXPORT_SYMBOL(__blkdev_issue_discard);
  * @sector:	start sector
  * @nr_sects:	number of sectors to discard
  * @gfp_mask:	memory allocation flags (for bio_alloc)
- * @flags:	BLKDEV_IFL_* flags to control behaviour
+ * @flags:	BLKDEV_DISCARD_* flags to control behaviour
  *
  * Description:
  *    Issue a discard request for the sectors in question.
Signature · 1 line
2.11.0.483.g087da7b7c-goog
#1 lore raw
Quoted 26 lines · Eric Biggers

From: Eric Biggers <[email protected]>

BLKDEV_IFL_* flags no longer exist; blkdev_issue_discard() now actually takes BLKDEV_DISCARD_* flags.

---
 block/blk-lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/blk-lib.c +1 -1
index ed89c8f4b2a0..463b76dd566f 100644
@@ -109,7 +109,7 @@ EXPORT_SYMBOL(__blkdev_issue_discard);
  * @sector:	start sector
  * @nr_sects:	number of sectors to discard
  * @gfp_mask:	memory allocation flags (for bio_alloc)
- * @flags:	BLKDEV_IFL_* flags to control behaviour
+ * @flags:	BLKDEV_DISCARD_* flags to control behaviour
  *
  * Description:
  *    Issue a discard request for the sectors in question.
Signature · 1 line
2.11.0.483.g087da7b7c-goog

Ping?

maintainer
#2 lore raw
Quoted 21 lines · Eric Biggers
Quoted 20 lines · Eric Biggers

From: Eric Biggers <[email protected]>

BLKDEV_IFL_* flags no longer exist; blkdev_issue_discard() now actually takes BLKDEV_DISCARD_* flags.

---
 block/blk-lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/blk-lib.c +1 -1
index ed89c8f4b2a0..463b76dd566f 100644
@@ -109,7 +109,7 @@ EXPORT_SYMBOL(__blkdev_issue_discard);
  * @sector:	start sector
  * @nr_sects:	number of sectors to discard
  * @gfp_mask:	memory allocation flags (for bio_alloc)
- * @flags:	BLKDEV_IFL_* flags to control behaviour
+ * @flags:	BLKDEV_DISCARD_* flags to control behaviour
Quoted 8 lines
Quoted 6 lines
block/blk-lib.c +0 -0
  *
  * Description:
  *    Issue a discard request for the sectors in question.
Signature · 1 line
2.11.0.483.g087da7b7c-goog

Ping?

Sorry, looks like that got lost. I've applied this, and your other patch. Thanks for the reminder!

Signature · 1 line
Jens Axboe