Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755549AbbBPIUy (ORCPT ); Mon, 16 Feb 2015 03:20:54 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:14574 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753824AbbBPIUv (ORCPT ); Mon, 16 Feb 2015 03:20:51 -0500 X-AuditID: cbfee61b-f79d76d0000024d6-be-54e1a862507e From: Chao Yu To: Jaegeuk Kim , Changman Lee Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] f2fs: fix incorrectly stat number of inline data inode Date: Mon, 16 Feb 2015 16:20:27 +0800 Message-id: <006701d049c1$7a323190$6e9694b0$@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: AdBJwVNVQeAPdefMSWit2NhbNYCbpw== Content-language: zh-cn X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMLMWRmVeSWpSXmKPExsVy+t9jAd2kFQ9DDI6fE7K4tq+RyeLJ+lnM FpcWuVtc3jWHzYHFY9OqTjaP3Qs+M3n0bVnF6PF5k1wASxSXTUpqTmZZapG+XQJXxt87HcwF F1gr/l8+x9TAeI6li5GTQ0LARGJ67wlWCFtM4sK99WxdjFwcQgKLGCX+L7jBDuH8YJQ4tucB WAebgIrE8o7/TCC2iICXxKT9J8DizAIeEo0d38EmCQt4S6x+tw2shkVAVWLJ9sNgNq+ApcTH 68vYIWxBiR+T70H1akms33mcCcKWl9i85i0zxEUKEjvOvmaE2KUn8Wr9HTaIGnGJjUdusUxg FJiFZNQsJKNmIRk1C0nLAkaWVYyiqQXJBcVJ6blGesWJucWleel6yfm5mxjBQf1MegfjqgaL Q4wCHIxKPLwfVB6GCLEmlhVX5h5ilOBgVhLhvdoKFOJNSaysSi3Kjy8qzUktPsQozcGiJM6r ZN8WIiSQnliSmp2aWpBaBJNl4uCUamAMS1RIUFmn9vI08ymev294LWOq1i5SCn91obR4PmtJ TdgpxfaDHCnaBbUnDnaGb4x97tPWtU8iZfXLDY98ORdWXWU64urQwlqkI+jh8u3sAiVO6/33 Dq63tVq/rrxBv+LoTOseS99dP2WmVrIettu96fm6BVtW3NfU2tZfUvPgy4nKx3rl558osRRn JBpqMRcVJwIAig7Z62YCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 937 Lines: 33 We should stat inline data information for temp file in f2fs_tmpfile if we enable inline_data feature. Otherwise, inline data stat number will be wrong after this temp file is evicted. Signed-off-by: Chao Yu --- fs/f2fs/namei.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index e79639a9..1e2ae21 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -693,6 +693,8 @@ static int f2fs_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) f2fs_unlock_op(sbi); alloc_nid_done(sbi, inode->i_ino); + + stat_inc_inline_inode(inode); d_tmpfile(dentry, inode); unlock_new_inode(inode); return 0; -- 2.2.1 -- 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/