Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 24, 2020. It is now read-only.

Commit c20cfc2

Browse files
Christoph Hellwigaxboe
authored andcommitted
block: stop using blkdev_issue_write_same for zeroing
We'll always use the WRITE ZEROES code for zeroing now. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 615ec94 commit c20cfc2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

block/blk-lib.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,6 @@ int blkdev_issue_zeroout(struct block_device *bdev, sector_t sector,
364364
return 0;
365365
}
366366

367-
if (!blkdev_issue_write_same(bdev, sector, nr_sects, gfp_mask,
368-
ZERO_PAGE(0)))
369-
return 0;
370-
371367
blk_start_plug(&plug);
372368
ret = __blkdev_issue_zeroout(bdev, sector, nr_sects, gfp_mask,
373369
&bio, discard);

0 commit comments

Comments
 (0)