From patchwork Sun Mar 8 23:37:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ??? X-Patchwork-Id: 5963211 Return-Path: X-Original-To: patchwork-linux-fsdevel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 722C3BF440 for ; Sun, 8 Mar 2015 23:38:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A87F320266 for ; Sun, 8 Mar 2015 23:38:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C0AAF2024F for ; Sun, 8 Mar 2015 23:38:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752377AbbCHXiQ (ORCPT ); Sun, 8 Mar 2015 19:38:16 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:54002 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751473AbbCHXiP (ORCPT ); Sun, 8 Mar 2015 19:38:15 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NKX00F9M2ZOED10@mailout2.samsung.com>; Mon, 09 Mar 2015 08:38:12 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.133]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 16.66.18484.46DDCF45; Mon, 09 Mar 2015 08:38:12 +0900 (KST) X-AuditID: cbfee68f-f791c6d000004834-7b-54fcdd6478c8 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 83.65.09430.46DDCF45; Mon, 09 Mar 2015 08:38:12 +0900 (KST) Received: from localhost ([12.36.79.189]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NKX00GBD2ZO5IB0@mmp1.samsung.com>; Mon, 09 Mar 2015 08:38:12 +0900 (KST) Date: Mon, 09 Mar 2015 08:37:07 +0900 From: Changman Lee To: Chao Yu Cc: linux-f2fs-devel@lists.sourceforge.net, 'Jaegeuk Kim' , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] f2fs: fix max orphan inodes calculation Message-id: <20150308233707.GA4450@lcm-devel.org> References: <1425029893-24702-1-git-send-email-wanpeng.li@linux.intel.com> <20150303014022.GD6541@lcm-devel.org> <012301d057bf$029602e0$07c208a0$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline In-reply-to: <012301d057bf$029602e0$07c208a0$@samsung.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprCIsWRmVeSWpSXmKPExsWyRsSkVTfl7p8Qg79v9Cz+N31ks3iyfhaz xaVF7hZ79p5ksbi8aw6bA6vHplWdbB67F3xm8ujbsorR4/MmuQCWKC6blNSczLLUIn27BK6M o1u6mAvucVTc6DnH2sDYzd7FyMkhIWAisW/KXVYIW0ziwr31bF2MXBxCAksZJW5f+8YIU7T4 0wZmiMQiRonvrduZQBJCAj8ZJSZ8UQCxWQRUJd48vsMGYrMJaEm0n17LAmKLCChJ/Jq/iBWk mVmgl1Fi5vTTYM3CAvYSjz72M4PYvAKGEp979iPZ0D+fDSIhKPFj8j2wScxAU9fvPM4EYUtL PPo7A+wHTgEriS9fZ4LViwqoSEw5uY0N4uxN7BJfG50grhOQ+Db5ENAcDqC4rMSmA8wQJZIS B1fcYJnAKDYLybZZSLbNQrJtASPzKkbR1ILkguKk9CJjveLE3OLSvHS95PzcTYzAyDr971n/ D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3+bqlPBs3uzD4id33stX3mqzof/6yua2KYIyhxcrs6pesVp58c080RMH9zAZ G9d8+/p/feiFqVdWfBG/utDv4V3Hr9t8V8bFlvWInfLSNPim9te18sreI7u3TxIoeuSuxFKc kWioxVxUnAgA/3c3WfICAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP --> 8 -- From ce2462523dd5940b59f770c09a50d4babff5fcdb Mon Sep 17 00:00:00 2001 From: Changman Lee Date: Mon, 9 Mar 2015 08:07:04 +0900 Subject: [PATCH] f2fs: cleanup statement about max orphan inodes calc Through each macro, we can read the meaning easily. Signed-off-by: Changman Lee --- fs/f2fs/checkpoint.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 53bc328..384bfc4 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c @@ -1104,13 +1104,6 @@ void init_ino_entry_info(struct f2fs_sb_info *sbi) im->ino_num = 0; } - /* - * considering 512 blocks in a segment 8+cp_payload blocks are - * needed for cp and log segment summaries. Remaining blocks are - * used to keep orphan entries with the limitation one reserved - * segment for cp pack we can have max 1020*(504-cp_payload) - * orphan entries - */ sbi->max_orphans = (sbi->blocks_per_seg - F2FS_CP_PACKS - NR_CURSEG_TYPE - __cp_payload(sbi)) * F2FS_ORPHANS_PER_BLOCK;