diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-20 20:05:45 -0400 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-21 20:13:09 -0400 |
| commit | 8d5ac187da10a8a5599b481588951470a2fb792b (patch) | |
| tree | 7a41e9d1aab33486ad437ec4ba82982832e2bef5 /fs/bcachefs/xattr.c | |
| parent | bcachefs: mkwrite() now only dirties one page (diff) | |
| download | linux-8d5ac187da10a8a5599b481588951470a2fb792b.tar.gz linux-8d5ac187da10a8a5599b481588951470a2fb792b.zip | |
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>
Diffstat (limited to 'fs/bcachefs/xattr.c')
| -rw-r--r-- | fs/bcachefs/xattr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/bcachefs/xattr.c b/fs/bcachefs/xattr.c index 651da52b2cbc..e6be32003f3b 100644 --- a/fs/bcachefs/xattr.c +++ b/fs/bcachefs/xattr.c @@ -473,6 +473,12 @@ static int inode_opt_set_fn(struct btree_trans *trans, { struct inode_opt_set *s = p; + if (s->id == Inode_opt_casefold) { + int ret = bch2_inode_set_casefold(trans, inode_inum(inode), bi, s->v); + if (ret) + return ret; + } + if (s->defined) bi->bi_fields_set |= 1U << s->id; else |
