bcachefs: Fix casefold opt via xattr interface
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 21 May 2025 00:05:45 +0000 (20:05 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 00:13:09 +0000 (20:13 -0400)
commit8d5ac187da10a8a5599b481588951470a2fb792b
tree7a41e9d1aab33486ad437ec4ba82982832e2bef5
parentcbed8287e5789558cf947a7b4d47fdf3e25c29bf
bcachefs: Fix casefold opt via xattr interface

Changing the casefold option requires extra checks/work - factor out a
helper from bch2_fileattr_set() for the xattr code to use.

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