[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1469586959-11091-1-git-send-email-salah.triki@gmail.com>
Date: Wed, 27 Jul 2016 03:35:59 +0100
From: Salah Triki <salah.triki@...il.com>
To: viro@...IV.linux.org.uk
Cc: luisbg@....samsung.com, akpm@...ux-foundation.org, mhocko@...e.com,
vdavydov@...tuozzo.com, linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org, salah.triki@...il.com
Subject: [RESEND PATCH V3] fs: befs: Insert NULL inode to dentry
As VFS expects, lookup inserts NULL inode to dentry when the named inode
does not exist.
Signed-off-by: Salah Triki <salah.triki@...il.com>
---
fs/befs/linuxvfs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
index c734f21..2fea87b 100644
--- a/fs/befs/linuxvfs.c
+++ b/fs/befs/linuxvfs.c
@@ -184,6 +184,7 @@ befs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
if (ret == BEFS_BT_NOT_FOUND) {
befs_debug(sb, "<--- %s %pd not found", __func__, dentry);
+ d_add(dentry, NULL);
return ERR_PTR(-ENOENT);
} else if (ret != BEFS_OK || offset == 0) {
--
1.9.1
Powered by blists - more mailing lists