Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3339869rdb; Sun, 10 Dec 2023 01:21:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IHymurcKvluUsLdmBj0sYYn7zqG4hkdpEHZR0rO/JvG0PyvRiN5WhoVE5sPU5OTYgvqaV8L X-Received: by 2002:a05:6808:2e8c:b0:3b8:b407:a988 with SMTP id gt12-20020a0568082e8c00b003b8b407a988mr4255712oib.13.1702200084900; Sun, 10 Dec 2023 01:21:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702200084; cv=none; d=google.com; s=arc-20160816; b=tPUBUl130NHtNkSw+vCH6tlFyw/Vlsl/ug52XjyniSqMGPlntR3lvXbN/hMUli7NjL Fkl60IEKXgTLYnPcpniU1WYeMaCB6SVDsBcNP58la+nuClabrTiT/ztH+Wy72b9nSC/d DQ7SXJlxfxU5bWYFWD0MY/2NWLCPPHFZD7wqd6twW/dTnmu4iPzLM2YJ/N9H6S1QbPdr yzNU/PqS+rkYr86QMSCNBhB/Qc5BptEnE7HX9RokCHqMKK0CvQ8NopdMQpKTFnE3Fi92 odVFQTAT+BKSFcTNPnR8ezuVr4zkD4PhtfiO8z0mxbs0Om0AFO0jVjC/4j69lGW4W2gT 48ow== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jmku8OQGml8XxT+tBSJu9T75Z7r/nNy38k/mPLNjm3s=; fh=X1/oBJvTGJUQ0YtRp03u+3tPfRw/dXXALWynfOSlfQQ=; b=r8dgVq7Nj2AxsngzWiNObHP7D88/Uk+u8XochIyK3G627t20gvENA/4UglG47dOM/t CHUBWQHBWT7O64fakTbmUMJxN7f3h6vj+fsKiM0N8r4lD0hNzvrgwtQk5nGoUWsmMK97 W7kvOz/8eqA5hjs2GxsUKNGv7EOoW4iHYL5blIqSH+qQ8iWZivigXCT9R0KCU10eXKnm M5hiEkJ8DHKKcjz1kImZTlHq3ATVn1z6jhtXJtzGIQ1VBHSMZyiyXc7FXlVLuZvKXsl9 29Cb8R8jccefRqysDrMldqskYQ1g2D/CMhR2fG2KU2RYbCv1BeNIRtZ4FuhddPji8qKG KZUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CvBHy2US; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id bq15-20020a056a000e0f00b006cef66f8c03si1921217pfb.53.2023.12.10.01.21.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 01:21:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CvBHy2US; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id E4FD98050016; Sun, 10 Dec 2023 01:21:19 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231718AbjLJJU4 (ORCPT + 99 others); Sun, 10 Dec 2023 04:20:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231714AbjLJJUt (ORCPT ); Sun, 10 Dec 2023 04:20:49 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08F3D106 for ; Sun, 10 Dec 2023 01:20:50 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69CB0C433C9; Sun, 10 Dec 2023 09:20:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702200049; bh=Z5UrpLIEuOaFiej2joNW+DOpVniO1sI531uE7zOL/8k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CvBHy2USow/jsELgaKUJfqOV9RnzoNq9L7JUkfCCjW4NbRh6YzdcIEr91mN1zNBFr 9VYuwI7CohXwW9MyT4dP3Sf8ANIsirR3nmOLJEpC/rpqwYO7E+GAuvVES49fjlAOfV ys2xzSlRcASMZbvq9Mn1spkcZsWs5jthdAxx1OCXNpyMQ0BbA85fthw4RQJq1P4pzR 76XxYavdynzuwmpsxtC3muNYV9d6/eU5OGJqTP2oVSGftvJjqSDCRjG1LtXSw/AExw fYacjwgkbWEoFlZ4bAdOWZszNcogx0YZjJ1wH2fT/IYHIRmZC7kblAAnU+Ufvij8Ab miCotaaZ8WF3w== From: Chao Yu To: jaegeuk@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Chao Yu Subject: [PATCH 2/6] f2fs: delete obsolete FI_DROP_CACHE Date: Sun, 10 Dec 2023 17:20:36 +0800 Message-Id: <20231210092040.3374741-2-chao@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231210092040.3374741-1-chao@kernel.org> References: <20231210092040.3374741-1-chao@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Sun, 10 Dec 2023 01:21:20 -0800 (PST) FI_DROP_CACHE was introduced in commit 1e84371ffeef ("f2fs: change atomic and volatile write policies") for volatile write feature, after commit 7bc155fec5b3 ("f2fs: kill volatile write support"), we won't support volatile write, let's delete related codes. Signed-off-by: Chao Yu --- fs/f2fs/data.c | 3 --- fs/f2fs/f2fs.h | 6 ------ 2 files changed, 9 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 73d0726ac366..7a81ff3c385a 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -2892,9 +2892,6 @@ int f2fs_write_single_data_page(struct page *page, int *submitted, zero_user_segment(page, offset, PAGE_SIZE); write: - if (f2fs_is_drop_cache(inode)) - goto out; - /* Dentry/quota blocks are controlled by checkpoint */ if (S_ISDIR(inode->i_mode) || quota_inode) { /* diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index be9a8e50ac50..2f1d76088953 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -781,7 +781,6 @@ enum { FI_UPDATE_WRITE, /* inode has in-place-update data */ FI_NEED_IPU, /* used for ipu per file */ FI_ATOMIC_FILE, /* indicate atomic file */ - FI_DROP_CACHE, /* drop dirty page cache */ FI_DATA_EXIST, /* indicate data exists */ FI_INLINE_DOTS, /* indicate inline dot dentries */ FI_SKIP_WRITES, /* should skip data page writeback */ @@ -3278,11 +3277,6 @@ static inline bool f2fs_is_cow_file(struct inode *inode) return is_inode_flag_set(inode, FI_COW_FILE); } -static inline bool f2fs_is_drop_cache(struct inode *inode) -{ - return is_inode_flag_set(inode, FI_DROP_CACHE); -} - static inline void *inline_data_addr(struct inode *inode, struct page *page) { struct f2fs_inode *ri = F2FS_INODE(page); -- 2.40.1