lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 31 Dec 2020 00:55:53 +0800 From: Shiyang Ruan <ruansy.fnst@...fujitsu.com> To: <linux-kernel@...r.kernel.org>, <linux-xfs@...r.kernel.org>, <linux-nvdimm@...ts.01.org>, <linux-mm@...ck.org> CC: <linux-fsdevel@...r.kernel.org>, <linux-raid@...r.kernel.org>, <darrick.wong@...cle.com>, <dan.j.williams@...el.com>, <david@...morbit.com>, <hch@....de>, <song@...nel.org>, <rgoldwyn@...e.de>, <qi.fuli@...itsu.com>, <y-goto@...itsu.com> Subject: [PATCH 02/10] blk: Introduce ->corrupted_range() for block device In fsdax mode, the memory failure happens on block device. So, it is needed to introduce an interface for block devices. Each kind of block device can handle the memory failure in ther own ways. Signed-off-by: Shiyang Ruan <ruansy.fnst@...fujitsu.com> --- include/linux/blkdev.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 033eb5f73b65..45256fe84fa7 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1858,6 +1858,8 @@ struct block_device_operations { int (*report_zones)(struct gendisk *, sector_t sector, unsigned int nr_zones, report_zones_cb cb, void *data); char *(*devnode)(struct gendisk *disk, umode_t *mode); + int (*corrupted_range)(struct gendisk *disk, struct block_device *bdev, + loff_t offset, size_t len, void *data); struct module *owner; const struct pr_ops *pr_ops; }; -- 2.29.2
Powered by blists - more mailing lists