Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7635202rwd; Tue, 6 Jun 2023 13:58:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7d/me3cH9pMT0fbeNcWbqb1K+eFUXEjFZOZZo3J2heLAkZoUAiyt07nAMUNs3MsPjyMWvm X-Received: by 2002:a05:6a20:258a:b0:114:748f:f2dc with SMTP id k10-20020a056a20258a00b00114748ff2dcmr1018694pzd.59.1686085091704; Tue, 06 Jun 2023 13:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686085091; cv=none; d=google.com; s=arc-20160816; b=ce+W7nTPB4B7TwgUHJA9BJkIi4ctBxxuO2rS1B1bLLes0WR72k+xJoEzDIyegoPNYO C4yMeOLdk8CLDyV+gGPzTswNfc28TZIjFaPBfLPGu0SQpQCq94VZ6nNxIZpE7Hq2IOdD jYJYm3h3guWixPs+PAiuy1N1F7bDk3lwWpFwD9b8HOTeZG6icXr2urlEisSHfO+KrUV9 oCYSIRGeGlsRdenAzj6sOPhwT1GfYeUIEB8g1xyQmjQjTkGt4N3IIpXE36fhLqzRgEuF 9hupBuRInIJrmR3A7FtAzXJRv/oAI0/qyD4e36DF7uNdBMtD2spdDavdXBsT2pZd5dg+ 7TvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=bZlwSCjTyONyM6BfdlEEszOvDKo4//CkyOFwKo/Rm5w=; b=AZ33/gvzIaIpk/PIY/Vyrgd742gETihNgE1C6N6g9suVMotnCZU//h4OLcvooJE4AT r7+8Lu409hoMG3AVLTlid/vfOfAd7rg1HzX5mj3n6sftKr6Uaq9T76cSo/J/9/BXqZKj sbOIWL7wqJznPU3Q6iS/oS1BaePYBxm5auozeIWTrL+Yxwt/Wwvsqli9mjNivWt2I1pK Pa4+XdFD2+IifuSihlhNnvIkixxd4sVim+f2zHjTzcYpjimp0DgkHfXSHaUcGXwwE0Rk mjf+bYR1TmjYExyE8GShmGFLJ3448OZUcR97tbJ/oCj8NmCFhzc1sawotttQY1rx0gFq UkeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=grmxwQPi; 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 j189-20020a636ec6000000b0051423af249fsi7898062pgc.304.2023.06.06.13.57.42; Tue, 06 Jun 2023 13:58:11 -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=grmxwQPi; 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 S232478AbjFFUgw (ORCPT + 99 others); Tue, 6 Jun 2023 16:36:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229741AbjFFUgu (ORCPT ); Tue, 6 Jun 2023 16:36:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC5C91A7 for ; Tue, 6 Jun 2023 13:36:49 -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 6E6E66380A for ; Tue, 6 Jun 2023 20:36:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B52A6C433D2; Tue, 6 Jun 2023 20:36:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686083808; bh=0cYUz6iSpj0eGwIL3jk2KHuInnAfLbouhLwJjaUDn/U=; h=From:To:Cc:Subject:Date:From; b=grmxwQPihJZONINOr57RH3NFIbNisnRHwKJOkoK1+XFzKQ9/U8SF/YIRWEKwBCVNK KYuGs7WfGbxp9X+IqWMqiRBsXKGhAO8uFUzWX3sZ79ppoEH9pypErF1/wXxfbWF9mf gqQtV/VZE143HcdJwoHokLSMb8ZmUjZnzSy1ZhINqnH0NxOPgDLhoOkX5NpI4mIkKZ WccMw5QkjpTROKGyDNqBMXYB8OX7Qu1IcNssR3BVROAaCW3RiFWUf8QUWczS1fgUz2 xZVBmhQnXAKOOWJpg/vys8Jl4FlzELW6Hfr+i7wPT4BGjk/mjIoAM59IEXZFknDB1B Y2QAwpiuFRmig== From: Jaegeuk Kim To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Cc: Jaegeuk Kim Subject: [PATCH] f2fs: compress tmp files given extension Date: Tue, 6 Jun 2023 13:36:45 -0700 Message-ID: <20230606203645.3926651-1-jaegeuk@kernel.org> X-Mailer: git-send-email 2.41.0.rc0.172.g3f132b7071-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Let's compress tmp files for the given extension list. Signed-off-by: Jaegeuk Kim --- fs/f2fs/namei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index 3e35eb7dbb8f..cdc94c8e60f7 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -161,7 +161,7 @@ static void set_compress_new_inode(struct f2fs_sb_info *sbi, struct inode *dir, /* Compress wanting extension. */ for (i = 0; i < ext_cnt; i++) { - if (is_extension_exist(name, ext[i], false)) { + if (is_extension_exist(name, ext[i], true)) { set_compress_context(inode); return; } -- 2.41.0.rc0.172.g3f132b7071-goog