Skip to content

Commit

Permalink
fs: befs: Insert NULL inode to dentry
Browse files Browse the repository at this point in the history
As VFS expects, lookup inserts NULL inode to dentry when the named inode
does not exist.

Signed-off-by: Salah Triki <[email protected]>
Acked-by: Luis de Bethencourt <[email protected]>
  • Loading branch information
salah-triki authored and luisbg committed Oct 8, 2016
1 parent d70ee4f commit a26bc1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/befs/linuxvfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a26bc1a

Please sign in to comment.