[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <e0e40c9bc375fe5f90dcb92e1884352840780a07.1465065995.git.salah.triki@acm.org>
Date: Sat, 4 Jun 2016 19:53:21 +0100
From: Salah Triki <salah.triki@....org>
To: akpm@...ux-foundation.org
Cc: Salah Triki <salah.triki@....org>, linux-kernel@...r.kernel.org
Subject: [PATCH 3/3] fs: befs: Increment i_count when inode is found
As VFS expects, i_count field is incremented when the named inode is found.
Signed-off-by: Salah Triki <salah.triki@....org>
---
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
Powered by blists - more mailing lists