Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2884610pxy; Tue, 3 Aug 2021 18:43:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgMvB2FKeuEnLNLJknfmP/F1xZlDjP+DAlvHSpE/UQt0ewiaA/t8zDXaeimzFvx6lOWyWq X-Received: by 2002:a05:6e02:525:: with SMTP id h5mr261484ils.205.1628041398179; Tue, 03 Aug 2021 18:43:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628041398; cv=none; d=google.com; s=arc-20160816; b=Sk61WtNgaFZkv0xLQjRzWVqj9p+bxI/P8cL+SSk7fhibzsvou0Zu3ThhxK5RyVKH7g t7H4LBMsELrklQGHQgZGboAQ3+DUJ3Jr2RzgqlYNTSlwPMwbuDctDuB76QBHKz5qTX4V +fcafgxIxCd+DkctD+1Hs00CD0jbWsiez5kW79LX9wLD0cwhBHyVu0rh+29WHgy3fiBF OaLu+HTnLIgxEA/KNgb5AUO5isZiIBevykNAxKTesfwO7/9RZ4ILKpGQCl1GiEjJaguI N78hTxqLnwwRBuhbe+5mQSiVHwGeGjwpIb6TEwz+9EtFFqyb6eq7+dsHT6smzRDAz6fQ 9C8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=Lig83yMROpldhT56dxWJOgRXz4qsa5VlbJuXK3aImBU=; b=ZQ2zgWcfqFTTtcGLZ0Wu6+JgIThmmMO/rRsl7i0rfnDWwok/ilxYnX/JHyrn5klGYB Dm993cwzV7yLs7AdZxKpLolOOAXDKUFy3SqbjE4mD4rdeuuoVryZ6bupMyGFtJffj5yR 4sMopocSVhh8pwStPC10Aw9/eJUMC48bK3q4QXHJ9yUGizeurKJKcRVEPJy+0KMHbG+V 8gn6V9bcjf4nVF0KRtDGq7qmDJ2rCLputkGnf7yq63AbruUvcTBDQIgl1JLOqSzB4lkX RXWMZCTfqtlvL6XmeE7ljUs5Jxgce03OfKnaifUJ2jiUh+Logh3HSojeGgZ5Hdi7eVnX vyyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="S/6vQY8T"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y15si852064ill.98.2021.08.03.18.43.05; Tue, 03 Aug 2021 18:43:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="S/6vQY8T"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231815AbhHDAzN (ORCPT + 99 others); Tue, 3 Aug 2021 20:55:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:55602 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231704AbhHDAzN (ORCPT ); Tue, 3 Aug 2021 20:55:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8D76560EFD; Wed, 4 Aug 2021 00:55:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628038501; bh=aJH3kOdf8qd5RXoedFR4M2Cq1LOGvclWPP+/896MrNs=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=S/6vQY8ThuIEr1Lq8yWPTcCQwrgF2wLQbzHS/JYyCzDSpWnvScsdx07CnoG3uflZJ j5KPw3Q0pA4JfGi031sivlece5NjCmXAqwTp2quXcrIiNNxlwMQg9h2mN3oCEnXyAg sUgvZ9I3d7JOlfBKuKkIc+4x8WgDggE0FxUh0P5CeI75Jx/53ADY/iXwO+WRkVp+rc JqYk8eJOexrzENIgxdVNMY5FZhej1xfyGC2601FKlddg1DiOiPisTE3EJWFP3q+RHz F8SCAHdiFNEJEMXNGEAtHHfVI/UtIReuKXWzL0FkmCvaA5DiJPa6rs9FdW/Q4/KYbf s3QPWyKpnNLGQ== Subject: Re: [RFC v2] f2fs: extent cache: support unaligned extent To: Jaegeuk Kim Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Chao Yu References: <20210803023912.26667-1-chao@kernel.org> From: Chao Yu Message-ID: Date: Wed, 4 Aug 2021 08:55:01 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/8/4 2:41, Jaegeuk Kim wrote: >> @@ -247,6 +247,11 @@ static struct extent_node *__attach_extent_node(struct f2fs_sb_info *sbi, >> INIT_LIST_HEAD(&en->list); >> en->et = et; >> >> +#ifdef CONFIG_F2FS_FS_COMPRESSION > > Can we avoid the above ifdef? What do you mean by "avoid", getting rid of CONFIG_F2FS_FS_COMPRESSION directly? or wrapping codes into function and define as below? #ifdef CONFIG_F2FS_FS_COMPRESSION void foo() { implementation here } #else void foot() {} #endif >> static inline bool __is_extent_mergeable(struct extent_info *back, >> - struct extent_info *front) >> + struct extent_info *front, bool unaligned) >> { >> +#ifdef CONFIG_F2FS_FS_COMPRESSION > > Can we avoid this ifdef?