diff options
author | Daniel Golle <daniel@makrotopia.org> | 2023-12-19 05:33:24 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2024-02-26 00:41:33 +0300 |
commit | 7e84c961b2eb062d2f47037dcca52dcd1d3615b5 (patch) | |
tree | 21a7388dc6708d72f756ceaa4876ad481c47c5ac /drivers/mtd/ubi/ubi.h | |
parent | 927c145208b04490fb40c5c88a1086b592bfac25 (diff) | |
download | linux-7e84c961b2eb062d2f47037dcca52dcd1d3615b5.tar.xz |
mtd: ubi: introduce pre-removal notification for UBI volumes
Introduce a new notification type UBI_VOLUME_SHUTDOWN to inform users
that a volume is just about to be removed.
This is needed because users (such as the NVMEM subsystem) expect that
at the time their removal function is called, the parenting device is
still available (for removal of sysfs nodes, for example, in case of
NVMEM which otherwise WARNs on volume removal).
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd/ubi/ubi.h')
-rw-r--r-- | drivers/mtd/ubi/ubi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h index a588381c50ad..32009a24869e 100644 --- a/drivers/mtd/ubi/ubi.h +++ b/drivers/mtd/ubi/ubi.h @@ -337,6 +337,7 @@ struct ubi_volume { int writers; int exclusive; int metaonly; + bool is_dead; int reserved_pebs; int vol_type; @@ -561,6 +562,7 @@ struct ubi_device { spinlock_t volumes_lock; int ref_count; int image_seq; + bool is_dead; int rsvd_pebs; int avail_pebs; |