dm-bow: Use bdev_nr_sector to get the length of secstor 70/317470/1
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 2 Jan 2025 10:13:18 +0000 (19:13 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 2 Jan 2025 10:13:18 +0000 (19:13 +0900)
commitb23099dd3d1ad081a00fe41b0e40308cc2b294b9
treef9dce935d4ab3b0dbb7b0342995731b6529881b9
parenta401dcc72dd208d597dbe7434df3af7a2ef929f1
dm-bow: Use bdev_nr_sector to get the length of secstor

In Android Common kernel, bdev_nr_sectors() is using since v6.1 kernel.

Refer to https://android.googlesource.com/kernel/common
- android14-5.15 : i_size_read() >> SECTOR_SHIFT
- android14-6.1 / android15-6.6 / android16-6.12 : bdev_br_sectors()

Change-Id: Iecce56d6b98ee7f4714ccdd6dacb31f828795545
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
kernel/dm-bow.c