From: Salah Triki Date: Wed, 27 Jul 2016 02:35:59 +0000 (+0100) Subject: fs: befs: Insert NULL inode to dentry X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a26bc1adc74063ec116159d45f305d2a1dd4a07b;p=linux-beck.git 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 Acked-by: Luis de Bethencourt --- diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 67669a81cfd1..ebfc9f0b8a2d 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) {