Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp101512rwl; Tue, 4 Apr 2023 19:50:05 -0700 (PDT) X-Google-Smtp-Source: AKy350Y8F4KyKdkJ0vdQIetY4q6++n1AQGd46p0R0Dpiby4ayHi+zGJPKGm7A/kE2vgi+pAfepFP X-Received: by 2002:a17:90b:1b4b:b0:234:5d3c:b02b with SMTP id nv11-20020a17090b1b4b00b002345d3cb02bmr5243447pjb.42.1680663005237; Tue, 04 Apr 2023 19:50:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680663005; cv=none; d=google.com; s=arc-20160816; b=sdmiHGcaJrAGq4fXp9Slltw6IFTny+tUMoAu8Z4wzQlu3jdQrN5iKnOIpFLmBy5n4Q ZwZwklDxS+Z54624hkY9fGpGQESZxu95nHPEIGDt/ubowuqIwXoiQp9hlnnRSueq7Kyt Ym9yYrCnq9s2n8UcE7iv2XXUj1f0O9MBJXmWUdpBRAFU40FenwDb2KOU1Vi1GXMy7CNA vkkciYcRJvmjbDC/DVoDox/VCXzpEn4WbtB8k5EF+FCnGMk1cuz2sSp5w+DPDRiQWhS/ uG/5iWu2xgM8RX86d1/KXNKu96ZlGwlOkA97ooxajxJiPxr7za+hk+9fgoDZpWgzOJ+9 n3vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=fSgxrIJzJER5m+pzdIlnzDizOAdjIdlBCe5BODYGe0g=; b=O6lLS0ukEduL4MUqIf44+GPg0YOScL/deX3sdkYZspNZ/lmmK9RhsthTAH2l6aGeEn QDk2TE1W9MBsQ8vsoP4O76v8a4SiLlggNRDSfEBVJD/0S3tvQoyz4p08WOMMv4aQ5pZ0 c5iwbWZQHMFoEmdVXxGH490kPGo6hey5FcTaIwLUVaDIj3LSMvULMlucnuvkzzy/I47i I/Z7nORFi9eMScQ5x1CKViCCo5IuNMKnPstxnXVYDPytgUlaw+LN5yn9uhF9Hp8qYHl8 YsAXdpAKfcllJdK5MA64+bqHd/5CZeMJDuPE0NgjTMmgYLqqM+b4ahgyXG2SQfA9UeEZ Y0VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=btupqg2j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bf19-20020a17090b0b1300b00240263ef11bsi464988pjb.120.2023.04.04.19.49.42; Tue, 04 Apr 2023 19:50:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=btupqg2j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S236670AbjDECmE (ORCPT + 99 others); Tue, 4 Apr 2023 22:42:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235365AbjDECmD (ORCPT ); Tue, 4 Apr 2023 22:42:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C3A030F8 for ; Tue, 4 Apr 2023 19:42:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C5F53622DC for ; Wed, 5 Apr 2023 02:42:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E250C433D2; Wed, 5 Apr 2023 02:42:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680662522; bh=LRvCEbZX7PFF5LKWejNln0Ezi9mXPo/nLruBdPi7Q6g=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=btupqg2jLJ6NzEKRnMhqpVDn9yJOIMqiTmpFS9GWjLMvqAgoTY+9GW7NmNh7mMcmC SeBxdkmKs50CO5dk5nMBjz0Ff7Q4fqsgIt/6L5s2RzpvPbRXPZrFI+x8+awpaE1LmP bXV1aazE6iuHVTIP26qAt8keDnaVGEY+yKlBMdBBxh58arR4M6+MSW/tvp9dS2j997 siWc5B+zk1TJvtuygO9vG+/zy0hT9Pt06F0y2jdaKSD6MLQIG3A+pEgkSTga+7bkgJ F9YcTFw2JZm8LIUBFjq9zPymaGcYcUW4RlVQx173DoFQfQFwMOvLXxWex7P4tX23PT tS5CNvzk8Z8XA== Message-ID: Date: Wed, 5 Apr 2023 10:42:02 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v2] f2fs: merge lz4hc_compress_pages() to lz4_compress_pages() Content-Language: en-US To: Yangtao Li , Jaegeuk Kim Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org References: <20230330164948.29644-1-frank.li@vivo.com> From: Chao Yu In-Reply-To: <20230330164948.29644-1-frank.li@vivo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/3/31 0:49, Yangtao Li wrote: > +#ifdef CONFIG_F2FS_FS_LZ4HC > + unsigned char level = F2FS_I(cc->inode)->i_compress_level; > > if (level) > len = LZ4_compress_HC(cc->rbuf, cc->cbuf->cdata, cc->rlen, > cc->clen, level, cc->private); > else [snip] > #endif [snip] > + len = LZ4_compress_default(cc->rbuf, cc->cbuf->cdata, cc->rlen, It's weired that whole else xxx; statement is split by #endif. What about? unsigned char level = 0; #if ... #endif if (!level) len = LZ4_compress_default() Thanks, > cc->clen, cc->private); > if (!len) > return -EAGAIN;