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

From: Salah Triki
Date: Sat Jun 04 2016 - 15:57:57 EST


As VFS expects, i_count.counter field should be 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..1a67990 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.counter++;
+
befs_debug(sb, "<--- %s", __func__);

return NULL;
--
1.9.1