diff options
author | Salah Triki <salah.triki@gmail.com> | 2016-07-27 03:35:59 +0100 |
---|---|---|
committer | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-10-08 10:01:21 +0100 |
commit | a26bc1adc74063ec116159d45f305d2a1dd4a07b (patch) | |
tree | 684da91f4aa7bfcbabc68a57dd4aa3d5d4ed6d52 | |
parent | d70ee4f2de3de1f56f7b5d0837ad9d53320cf128 (diff) | |
download | linux-a26bc1adc74063ec116159d45f305d2a1dd4a07b.tar.gz linux-a26bc1adc74063ec116159d45f305d2a1dd4a07b.tar.bz2 linux-a26bc1adc74063ec116159d45f305d2a1dd4a07b.zip |
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@gmail.com>
Acked-by: Luis de Bethencourt <luisbg@osg.samsung.com>
-rw-r--r-- | fs/befs/linuxvfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |