Skip to content

Commit 99c87fe

Browse files
author
Kent Overstreet
committed
bcachefs: fix incorrect i_state usage
Reported-by: syzbot+95e40eae71609e40d851@syzkaller.appspotmail.com Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent 9482f3b commit 99c87fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/bcachefs/fs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ static struct bch_inode_info *bch2_inode_insert(struct bch_fs *c, struct bch_ino
193193
* only insert fully created inodes in the inode hash table. But
194194
* discard_new_inode() expects it to be set...
195195
*/
196-
inode->v.i_flags |= I_NEW;
196+
inode->v.i_state |= I_NEW;
197197
/*
198198
* We don't want bch2_evict_inode() to delete the inode on disk,
199199
* we just raced and had another inode in cache. Normally new

0 commit comments

Comments
 (0)