Unverified Commit 6d5b756b authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!12557 ntfs3: Change to non-blocking allocation in ntfs_d_hash

parents 01c77244 dc82b1a5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -501,7 +501,7 @@ static int ntfs_d_hash(const struct dentry *dentry, struct qstr *name)
	/*
	 * Try slow way with current upcase table
	 */
	uni = __getname();
	uni = kmem_cache_alloc(names_cachep, GFP_NOWAIT);
	if (!uni)
		return -ENOMEM;

@@ -523,7 +523,7 @@ static int ntfs_d_hash(const struct dentry *dentry, struct qstr *name)
	err = 0;

out:
	__putname(uni);
	kmem_cache_free(names_cachep, uni);
	return err;
}