summaryrefslogtreecommitdiff
path: root/fs/bcachefs/bcachefs_format.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-04-09 20:29:26 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:31 -0400
commit502f973dba660ed04f295e5ba129f2d369cc1aa6 (patch)
tree6c6f78016565915c5d510925596dbaa71a285f75 /fs/bcachefs/bcachefs_format.h
parentaae29082c63a4bfb7b6be5bc22b4727b7da14a7f (diff)
downloadlwn-502f973dba660ed04f295e5ba129f2d369cc1aa6.tar.gz
lwn-502f973dba660ed04f295e5ba129f2d369cc1aa6.zip
bcachefs: Fix a few warnings on 32 bit
These showed up when building for mips. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/bcachefs_format.h')
-rw-r--r--fs/bcachefs/bcachefs_format.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/bcachefs/bcachefs_format.h b/fs/bcachefs/bcachefs_format.h
index a84a8e088953..969507c42c55 100644
--- a/fs/bcachefs/bcachefs_format.h
+++ b/fs/bcachefs/bcachefs_format.h
@@ -851,10 +851,9 @@ struct bch_dirent {
#define DT_SUBVOL 16
#define BCH_DT_MAX 17
-#define BCH_NAME_MAX (U8_MAX * sizeof(u64) - \
+#define BCH_NAME_MAX ((unsigned) (U8_MAX * sizeof(u64) - \
sizeof(struct bkey) - \
- offsetof(struct bch_dirent, d_name))
-
+ offsetof(struct bch_dirent, d_name)))
/* Xattrs */