bcachefs: Lower BCH_NAME_MAX to 512
authorJoshua Ashton <joshua@froggi.es>
Sun, 13 Aug 2023 15:53:45 +0000 (16:53 +0100)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:11 +0000 (17:10 -0400)
commita125c0742ccb0b5f2bc84f3f1a8bcee173c1130d
tree615488ba70c349a442edfa6efbf3e0f32fb62d76
parent29c336afebb9013706334c1b451f31fe5ff37f34
bcachefs: Lower BCH_NAME_MAX to 512

To ensure we aren't shooting ourselves in the foot after merge for
potentially doing future revisions for dirent or for storing multiple
names for casefolding, limit this to 512 for now.

Previously this define was linked to the max size a d_name in
bch_dirent could be.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bcachefs_format.h
fs/bcachefs/dirent.c