summaryrefslogtreecommitdiff
path: root/fs/bcachefs/subvolume.h
diff options
context:
space:
mode:
authorBrett Holman <bholman.devel@gmail.com>2021-10-16 19:13:53 -0600
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:14 -0400
commit6a0f414e2018fe7a2b001fbc8ccd4a8f4f946214 (patch)
tree9e4980c57b41ee3385367195ed38c5c15cf4d179 /fs/bcachefs/subvolume.h
parent70d61a7036c8d046889a4bf4eda504a6a56b2642 (diff)
bcachefs: Fix compiler warnings
Type size_t is architecture-specific. Fix warnings for some non-amd64 arches. Signed-off-by: Brett Holman <bholman.devel@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/subvolume.h')
-rw-r--r--fs/bcachefs/subvolume.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/subvolume.h b/fs/bcachefs/subvolume.h
index ed02b982ff96..f98c8c0dbea2 100644
--- a/fs/bcachefs/subvolume.h
+++ b/fs/bcachefs/subvolume.h
@@ -75,7 +75,7 @@ static inline void snapshots_seen_init(struct snapshots_seen *s)
static inline int snapshots_seen_add(struct bch_fs *c, struct snapshots_seen *s, u32 id)
{
if (s->nr == s->size) {
- size_t new_size = max(s->size, 128UL) * 2;
+ size_t new_size = max(s->size, (size_t) 128) * 2;
u32 *d = krealloc(s->d, new_size * sizeof(s->d[0]), GFP_KERNEL);
if (!d) {