erofs-utils: lib: move block boundary check into __erofs_battach()
authorGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 19 Dec 2024 06:43:29 +0000 (14:43 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Sat, 5 Apr 2025 16:25:21 +0000 (00:25 +0800)
commit07b24c96b87c6308370ebe2833ab78b7e4a88a8a
treedcbb7957bdce8685bd9479ae4d0ad0cdd2211e71
parent2d0a6b6b0681ef3a31f6b9d1234bee2d03737a3f
erofs-utils: lib: move block boundary check into __erofs_battach()

It should be guaranteed when buffers are attached, rather than
scattered everywhere.

Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20241219064331.2223001-2-hsiangkao@linux.alibaba.com
lib/cache.c