From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751137AbcFDSx4 (ORCPT ); Sat, 4 Jun 2016 14:53:56 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:33992 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750963AbcFDSxq (ORCPT ); Sat, 4 Jun 2016 14:53:46 -0400 From: Salah Triki To: akpm@linux-foundation.org Cc: Salah Triki , linux-kernel@vger.kernel.org Subject: [PATCH 3/3] fs: befs: Increment i_count when inode is found Date: Sat, 4 Jun 2016 19:53:21 +0100 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As VFS expects, i_count field is incremented when the named inode is found. Signed-off-by: Salah Triki --- 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