Use the proper helper to read the block device size.
Signed-off-by: Christoph Hellwig
Reviewed-by: Kees Cook
Reviewed-by: Chaitanya Kulkarni
---
drivers/target/target_core_iblock.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/target/target_core_iblock.c
b/dr
On Fri, Oct 15, 2021 at 03:26:21PM +0200, Christoph Hellwig wrote:
> Use the proper helper to read the block device size.
>
> Signed-off-by: Christoph Hellwig
> Reviewed-by: Chaitanya Kulkarni
Is this basically an open-coded non-sb version of sb_bdev_nr_blocks()?
Reviewed-by: Kees Cook
> ---
Use the proper helper to read the block device size.
Signed-off-by: Christoph Hellwig
Reviewed-by: Chaitanya Kulkarni
---
drivers/target/target_core_iblock.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/target/target_core_iblock.c
b/drivers/target/target_core