mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
block: don't ignore -EOPNOTSUPP blkdev_issue_write_same
WRITE SAME is a data integrity operation and we can't simply ignore errors. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
parent
e950fdf71c
commit
3f40bf2c89
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ int blkdev_issue_write_same(struct block_device *bdev, sector_t sector,
|
||||||
|
|
||||||
if (bio)
|
if (bio)
|
||||||
ret = submit_bio_wait(bio);
|
ret = submit_bio_wait(bio);
|
||||||
return ret != -EOPNOTSUPP ? ret : 0;
|
return ret;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(blkdev_issue_write_same);
|
EXPORT_SYMBOL(blkdev_issue_write_same);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue