diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-11-05 11:57:58 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2020-12-07 11:50:46 -0500 |
commit | d983a32e7902da73c52e80b5dda4bc14d16415ae (patch) | |
tree | 4159d4364b90f14c8f4a1cf809acf25535a0a80e /fs/bcachefs/fs.c | |
parent | 492f2208a8a1788569f67142cab50cc9e13be5ee (diff) |
switch inodes to rhashtableinode_work
Diffstat (limited to 'fs/bcachefs/fs.c')
-rw-r--r-- | fs/bcachefs/fs.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c index b5b42fb46f6a..11c8bfedc48d 100644 --- a/fs/bcachefs/fs.c +++ b/fs/bcachefs/fs.c @@ -235,13 +235,6 @@ struct inode *bch2_vfs_inode_get(struct bch_fs *c, u64 inum) return &inode->v; } -static int inum_test(struct inode *inode, void *p) -{ - unsigned long *ino = p; - - return *ino == inode->i_ino; -} - static struct bch_inode_info * __bch2_create(struct bch_inode_info *dir, struct dentry *dentry, umode_t mode, dev_t rdev, bool tmpfile) @@ -321,8 +314,7 @@ err_before_quota: * bch2_trans_exit() and dropping locks, else we could race with another * thread pulling the inode in and modifying it: */ - old = to_bch_ei(inode_insert5(&inode->v, inode->v.i_ino, - inum_test, NULL, &inode->v.i_ino)); + old = to_bch_ei(inode_insert5(&inode->v)); BUG_ON(!old); if (unlikely(old != inode)) { |