diff options
author | Salah Triki <salah.triki@gmail.com> | 2016-07-27 04:35:59 +0200 |
---|---|---|
committer | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-10-08 11:01:21 +0200 |
commit | a26bc1adc74063ec116159d45f305d2a1dd4a07b (patch) | |
tree | 684da91f4aa7bfcbabc68a57dd4aa3d5d4ed6d52 | |
parent | fs: befs: Remove useless calls to brelse in befs_find_brun_dblindirect (diff) | |
download | linux-a26bc1adc74063ec116159d45f305d2a1dd4a07b.tar.xz 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) { |