diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-03-16 21:45:21 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2021-03-16 21:46:18 -0400 |
commit | aa0ddf3cf900cbcf14d5eb3d42638cc4ebb18cf7 (patch) | |
tree | 4b4f32e655f206a6a5849e24e03bdd716d99d095 /libbcachefs/fs-ioctl.c | |
parent | e7c4380a892297d2f65e1c317a1b6d4c67378299 (diff) |
Update bcachefs sources to 242d37cbd0 bcachefs: Kill btree_iter_pos_changed()
Diffstat (limited to 'libbcachefs/fs-ioctl.c')
-rw-r--r-- | libbcachefs/fs-ioctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbcachefs/fs-ioctl.c b/libbcachefs/fs-ioctl.c index 0873d2f0..eb871634 100644 --- a/libbcachefs/fs-ioctl.c +++ b/libbcachefs/fs-ioctl.c @@ -183,6 +183,7 @@ static int bch2_ioc_reinherit_attrs(struct bch_fs *c, struct bch_inode_info *src, const char __user *name) { + struct bch_hash_info hash = bch2_hash_info_init(c, &src->ei_inode); struct bch_inode_info *dst; struct inode *vinode = NULL; char *kname = NULL; @@ -202,8 +203,7 @@ static int bch2_ioc_reinherit_attrs(struct bch_fs *c, qstr.name = kname; ret = -ENOENT; - inum = bch2_dirent_lookup(c, src->v.i_ino, - &src->ei_str_hash, + inum = bch2_dirent_lookup(c, src->v.i_ino, &hash, &qstr); if (!inum) goto err1; |