Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751729AbbB1JBq (ORCPT ); Sat, 28 Feb 2015 04:01:46 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:24194 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751403AbbB1JBl (ORCPT ); Sat, 28 Feb 2015 04:01:41 -0500 X-AuditID: cbfee61a-f79c06d000004e71-d1-54f183f3a5db From: Chao Yu To: "'Wanpeng Li'" , "'Jaegeuk Kim'" Cc: "'Changman Lee'" , linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org References: <1425029893-24702-1-git-send-email-wanpeng.li@linux.intel.com> In-reply-to: <1425029893-24702-1-git-send-email-wanpeng.li@linux.intel.com> Subject: RE: [PATCH v2] f2fs: fix max orphan inodes calculation Date: Sat, 28 Feb 2015 17:00:29 +0800 Message-id: <019701d05335$29150580$7b3f1080$@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: AQHmSlLQcqTjyjRrXhusXuwW79ud/pzZ1SWQ Content-language: zh-cn X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrGLMWRmVeSWpSXmKPExsVy+t9jAd3PzR9DDE78EbW4tq+RyeLJ+lnM FpcWuVvs2XuSxeLyrjlsFveebGN3YPPYtKqTzWPeyUCP3Qs+M3n0bVnF6PF5k1wAaxSXTUpq TmZZapG+XQJXRvOSRraCqewVjcuLGxgb2LoYOTgkBEwk9q0FMjmBTDGJC/fWA9lcHEICixgl Oi9PgHJ+MErMv/iTHaSKTUBFYnnHfyYQW0QgWOLz0Z8sIEXMApMZJWb13QVLCAl4SWz/vgjM 5hTwlli8+A0riC0sYC/x7u05ZpDNLAKqEo/3+YKYvAKWEi92MINU8AoISvyYfI8FxGYW0JJY v/M4E4QtL7F5zVtmiEMVJHacfc0IcYKRxK95PVA14hIbj9ximcAoNAvJqFlIRs1CMmoWkpYF jCyrGEVTC5ILipPScw31ihNzi0vz0vWS83M3MYJj45nUDsaVDRaHGAU4GJV4eBP4PoYIsSaW FVfmHmKU4GBWEuFtDAYK8aYkVlalFuXHF5XmpBYfYpTmYFES51WybwsREkhPLEnNTk0tSC2C yTJxcEo1MBqJFfWdESvf+aHZYOH2T5112VxTpdelWqgVzxITC33GeV6S/Y/GeoH+kpDb+nIy DHNs9pcs4s3mCnT2OndJ5nT79yRPw1n+1i2yJ2Yttnp3p/pB+rmkWKMjL+cZs3MGeGeofddY 3m9rJHFt0eqf/W/zVbbae+kf55v/1fN8ZPqHm3MXB7/6rMRSnJFoqMVcVJwIAJPBmSOJAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1143 Lines: 24 > -----Original Message----- > From: Wanpeng Li [mailto:wanpeng.li@linux.intel.com] > Sent: Friday, February 27, 2015 5:38 PM > To: Jaegeuk Kim > Cc: Changman Lee; Chao Yu; linux-f2fs-devel@lists.sourceforge.net; > linux-fsdevel@vger.kernel.org; linux-kernel@vger.kernel.org; Wanpeng Li > Subject: [PATCH v2] f2fs: fix max orphan inodes calculation > > cp_payload is introduced for sit bitmap to support large volume, and it is > just after the block of f2fs_checkpoint + nat bitmap, so the first segment > should include F2FS_CP_PACKS + NR_CURSEG_TYPE + cp_payload + orphan blocks. > However, current max orphan inodes calculation don't consider cp_payload, > this patch fix it by reducing the number of cp_payload from total blocks of > the first segment when calculate max orphan inodes. > > Signed-off-by: Wanpeng Li Reviewed-by: Chao Yu -- 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/