mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 03:37:45 +03:00
Linux 4.19-rc3+ compat: Remove refcount_t compat
torvalds/linux@59b57717f ("blkcg: delay blkg destruction until after writeback has finished") added a refcount_t to the blkcg structure. Due to the refcount_t compatibility code, zfs_refcount_t was used by mistake. Resolve this by removing the compatibility code and replacing the occurrences of refcount_t with zfs_refcount_t. Reviewed-by: Franz Pletz <fpletz@fnordicwalking.de> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tim Schumacher <timschumi@gmx.de> Closes #7885 Closes #7932
This commit is contained in:
committed by
Brian Behlendorf
parent
7a23c81342
commit
c13060e478
@@ -62,7 +62,7 @@ typedef struct dsl_wrapping_key {
|
||||
crypto_key_t wk_key;
|
||||
|
||||
/* refcount of number of dsl_crypto_key_t's holding this struct */
|
||||
refcount_t wk_refcnt;
|
||||
zfs_refcount_t wk_refcnt;
|
||||
|
||||
/* dsl directory object that owns this wrapping key */
|
||||
uint64_t wk_ddobj;
|
||||
@@ -112,7 +112,7 @@ typedef struct dsl_crypto_key {
|
||||
avl_node_t dck_avl_link;
|
||||
|
||||
/* refcount of dsl_key_mapping_t's holding this key */
|
||||
refcount_t dck_holds;
|
||||
zfs_refcount_t dck_holds;
|
||||
|
||||
/* master key used to derive encryption keys */
|
||||
zio_crypt_key_t dck_key;
|
||||
@@ -134,7 +134,7 @@ typedef struct dsl_key_mapping {
|
||||
avl_node_t km_avl_link;
|
||||
|
||||
/* refcount of how many users are depending on this mapping */
|
||||
refcount_t km_refcnt;
|
||||
zfs_refcount_t km_refcnt;
|
||||
|
||||
/* dataset this crypto key belongs to (index) */
|
||||
uint64_t km_dsobj;
|
||||
|
||||
Reference in New Issue
Block a user