Loading fs/bcachefs/fs.c +6 −0 Original line number Diff line number Diff line Loading @@ -194,6 +194,12 @@ static struct bch_inode_info *bch2_inode_insert(struct bch_fs *c, struct bch_ino * discard_new_inode() expects it to be set... */ inode->v.i_flags |= I_NEW; /* * We don't want bch2_evict_inode() to delete the inode on disk, * we just raced and had another inode in cache. Normally new * inodes don't have nlink == 0 - except tmpfiles do... */ set_nlink(&inode->v, 1); discard_new_inode(&inode->v); inode = old; } else { Loading Loading
fs/bcachefs/fs.c +6 −0 Original line number Diff line number Diff line Loading @@ -194,6 +194,12 @@ static struct bch_inode_info *bch2_inode_insert(struct bch_fs *c, struct bch_ino * discard_new_inode() expects it to be set... */ inode->v.i_flags |= I_NEW; /* * We don't want bch2_evict_inode() to delete the inode on disk, * we just raced and had another inode in cache. Normally new * inodes don't have nlink == 0 - except tmpfiles do... */ set_nlink(&inode->v, 1); discard_new_inode(&inode->v); inode = old; } else { Loading