[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <b7753ae04fdd93f14d93547ab97dde9d4859f3bd.1465070119.git.salah.triki@acm.org>
Date: Sat, 4 Jun 2016 20:57:04 +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 V2 3/3] fs: befs: Increment i_count when inode is found
As VFS expects, i_count.counter field should be 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..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
Powered by blists - more mailing lists