summaryrefslogtreecommitdiff
path: root/fs/squashfs/file.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2021-05-24 13:43:56 -0400
committerTejun Heo <tj@kernel.org>2021-05-24 13:43:56 -0400
commitc2a11971549b16a24cce81250d84b63d53499fd0 (patch)
tree7bfa4b1c61ec5ad44834a3e38da3d4958517a00f /fs/squashfs/file.c
parentf4f809f66b7545b89bff4b132cdb37adc2d2c157 (diff)
parent08b2b6fdf6b26032f025084ce2893924a0cdb4a2 (diff)
downloadlwn-c2a11971549b16a24cce81250d84b63d53499fd0.tar.gz
lwn-c2a11971549b16a24cce81250d84b63d53499fd0.zip
Merge branch 'for-5.13-fixes' into for-5.14
Diffstat (limited to 'fs/squashfs/file.c')
-rw-r--r--fs/squashfs/file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/squashfs/file.c b/fs/squashfs/file.c
index 7b1128398976..89d492916dea 100644
--- a/fs/squashfs/file.c
+++ b/fs/squashfs/file.c
@@ -211,11 +211,11 @@ failure:
* If the skip factor is limited in this way then the file will use multiple
* slots.
*/
-static inline int calculate_skip(int blocks)
+static inline int calculate_skip(u64 blocks)
{
- int skip = blocks / ((SQUASHFS_META_ENTRIES + 1)
+ u64 skip = blocks / ((SQUASHFS_META_ENTRIES + 1)
* SQUASHFS_META_INDEXES);
- return min(SQUASHFS_CACHED_BLKS - 1, skip + 1);
+ return min((u64) SQUASHFS_CACHED_BLKS - 1, skip + 1);
}