diff mbox series

[RFC,v3,9/9] quota: Adjust argument for lookup_positive_unlocked()

Message ID 20200515072047.31454-10-cgxu519@mykernel.net (mailing list archive)
State New, archived
Headers show
Series Suppress negative dentry | expand

Commit Message

Chengguang Xu May 15, 2020, 7:20 a.m. UTC
Set 0 as lookup flag argument when calling lookup_positive_unlocked(),
because we don't hope to drop negative dentry in lookup.

Signed-off-by: Chengguang Xu <cgxu519@mykernel.net>
---
 fs/quota/dquot.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c
index b6a4f692d345..8d6c32f75a4d 100644
--- a/fs/quota/dquot.c
+++ b/fs/quota/dquot.c
@@ -2488,7 +2488,8 @@  int dquot_quota_on_mount(struct super_block *sb, char *qf_name,
 	struct dentry *dentry;
 	int error;
 
-	dentry = lookup_positive_unlocked(qf_name, sb->s_root, strlen(qf_name));
+	dentry = lookup_positive_unlocked(qf_name, sb->s_root,
+					  strlen(qf_name), 0);
 	if (IS_ERR(dentry))
 		return PTR_ERR(dentry);