bcachefs: Ensure that snapshot creation propagates has_case_insensitive
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 8 Jun 2025 16:35:20 +0000 (12:35 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 12 Jun 2025 03:24:21 +0000 (23:24 -0400)
commitcd1124244be30fd3e87da9186508aab371e9307d
tree33997ed5a97678c40f38932712b2378ab31116c6
parentb68baf9a87330148d3ad074e48503a4e9c5c3929
bcachefs: Ensure that snapshot creation propagates has_case_insensitive

We normally can't create a new directory with the case-insensitive
option already set - except when we're creating a snapshot.

And if casefolding is enabled filesystem wide, we should still set it
even though not strictly required, for consistency.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/namei.c