Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753672AbbGXKZl (ORCPT ); Fri, 24 Jul 2015 06:25:41 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:51779 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753488AbbGXKZg (ORCPT ); Fri, 24 Jul 2015 06:25:36 -0400 X-AuditID: cbfee61b-f79416d0000014c0-e5-55b2129e53ef From: Chao Yu To: Jaegeuk Kim Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] f2fs: fix inline data/dentry stat number leak Date: Fri, 24 Jul 2015 18:24:45 +0800 Message-id: <005f01d0c5fb$12c4b990$384e2cb0$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: AdDF+u1gfx1fza41Q8SZ3IjzcCibcQ== Content-language: zh-cn X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJLMWRmVeSWpSXmKPExsVy+t9jQd15QptCDea8lrZ4sn4Ws8WlRe4W l3fNYXNg9ti0qpPNY/eCz0wenzfJBTBHcdmkpOZklqUW6dslcGX0XNrMXtDGVtHw5SRjA2ML axcjJ4eEgInEgkf/GSFsMYkL99azdTFycQgJTGeU2HCsnQnCecUosXjJfnaQKjYBFYnlHf+Z QGwRIPvQostgcWYBD4nGju9gU4UFnCS+rnoHZrMIqEocm7ICrIZXwFLi9bdfbBC2oMSPyfdY IHq1JNbvPM4EYctLbF7zlhniIgWJHWdfM0Ls0pOYO/MBI0SNuMTGI7dYJjAKzEIyahaSUbOQ jJqFpGUBI8sqRtHUguSC4qT0XCO94sTc4tK8dL3k/NxNjOAAfia9g3FVg8UhRgEORiUe3owJ G0OFWBPLiitzDzFKcDArifAyHAMK8aYkVlalFuXHF5XmpBYfYpTmYFES5z2Z7xMqJJCeWJKa nZpakFoEk2Xi4JRqYJxe0bVGyLHjvM350KUTtv/2NfXXvRy/J8Y3su+zbrVi+ILb7veuPeJc dpFBTtlQ7OqpR4opXQeW1cWtzE/z6DhmFrZA9vwfj1Vcs/s3tv2aekhJf1vKyoqOJRf3fXm4 eYOk5Ubrx7q5h3cckEqQvl/zI+LglBtOPCdTk5/++fbtmVLWP1/2ZUVKLMUZiYZazEXFiQBr 0aSMXAIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 993 Lines: 31 If we clear inline data/dentry flag in handle_failed_inode, we will fail to decline the stat count of inline data/dentry in f2fs_evict_inode due to no flag in inode. So remove the wrong clearing. Signed-off-by: Chao Yu --- fs/f2fs/inode.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c index cc4f108..8335443 100644 --- a/fs/f2fs/inode.c +++ b/fs/f2fs/inode.c @@ -390,8 +390,6 @@ void handle_failed_inode(struct inode *inode) remove_inode_page(inode); set_inode_flag(F2FS_I(inode), FI_FREE_NID); - clear_inode_flag(F2FS_I(inode), FI_INLINE_DATA); - clear_inode_flag(F2FS_I(inode), FI_INLINE_DENTRY); f2fs_unlock_op(sbi); /* iput will drop the inode object */ -- 2.4.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/