xfs: update ag iterator to support wait on new inodes
[firefly-linux-kernel-4.4.55.git] / fs / f2fs / inline.c
index bda7126466c09f9b16f4d275cac5b287a06c9142..ad80f916b64d4abc4433f732a4fa24bc42bcb5b4 100644 (file)
@@ -303,7 +303,7 @@ struct f2fs_dir_entry *find_in_inline_dir(struct inode *dir,
        if (IS_ERR(ipage))
                return NULL;
 
-       namehash = f2fs_dentry_hash(&name);
+       namehash = f2fs_dentry_hash(&name, fname);
 
        inline_dentry = inline_data_addr(ipage);
 
@@ -468,7 +468,7 @@ int f2fs_add_inline_entry(struct inode *dir, const struct qstr *name,
 
        f2fs_wait_on_page_writeback(ipage, NODE);
 
-       name_hash = f2fs_dentry_hash(name);
+       name_hash = f2fs_dentry_hash(name, NULL);
        make_dentry_ptr(NULL, &d, (void *)dentry_blk, 2);
        f2fs_update_dentry(ino, mode, &d, name, name_hash, bit_pos);