From: Michael Jeanson Date: Wed, 13 Jan 2021 19:27:41 +0000 (-0500) Subject: fix: block: merge struct block_device and struct hd_struct (v5.11) X-Git-Tag: v2.13.0-rc1~58 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=fef7fe6ab7d3a9bb2e218fd41277b43dbb3de01a;hp=fef7fe6ab7d3a9bb2e218fd41277b43dbb3de01a;p=lttng-modules.git fix: block: merge struct block_device and struct hd_struct (v5.11) See upstream commit : commit 0d02129e76edf91cf04fabf1efbc3a9a1f1d729a Author: Christoph Hellwig Date: Fri Nov 27 16:43:51 2020 +0100 block: merge struct block_device and struct hd_struct Instead of having two structures that represent each block device with different life time rules, merge them into a single one. This also greatly simplifies the reference counting rules, as we can use the inode reference count as the main reference count for the new struct block_device, with the device model reference front ending it for device model interaction. Change-Id: I47702d1867fda0d8fc0754d761aa4d1ae702cdeb Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers ---