]> git.dujemihanovic.xyz Git - linux.git/commit
bcachefs: Move the ei_flags setting to after initialization
authorYouling Tang <tangyouling@kylinos.cn>
Tue, 4 Jun 2024 08:46:10 +0000 (16:46 +0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 21 Jun 2024 14:17:07 +0000 (10:17 -0400)
commitbd4da0462ea7bf26b2a5df5528ec20c550f7ec41
tree9d7b45c043ac34a58e2f0da57002b04c664bf914
parent2fe79ce7d1e8ec5059e7dfc15f3c769ae9679569
bcachefs: Move the ei_flags setting to after initialization

`inode->ei_flags` setting and cleaning should be done after initialization,
otherwise the operation is invalid.

Fixes: 9ca4853b98af ("bcachefs: Fix quota support for snapshots")
Signed-off-by: Youling Tang <tangyouling@kylinos.cn>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs.c