[PATCH 3/3] fs: befs: Increment i_count when inode is found

From: Salah Triki
Date: Sat Jun 04 2016 - 14:53:59 EST


As VFS expects, i_count field is incremented when the named inode is found.

Signed-off-by: Salah Triki <salah.triki@xxxxxxx>
---
fs/befs/linuxvfs.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
index 91740dd..05153b3 100644
--- a/fs/befs/linuxvfs.c
+++ b/fs/befs/linuxvfs.c
@@ -198,6 +198,8 @@ befs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)

d_add(dentry, inode);

+ inode->i_count++;
+
befs_debug(sb, "<--- %s", __func__);

return NULL;
--
1.9.1