Message ID | 20230410022145.1840993-1-chao@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1638639vqo; Sun, 9 Apr 2023 19:37:33 -0700 (PDT) X-Google-Smtp-Source: AKy350bckbqIjui5sHisndKGcoJl42xUe+OWJ2bvGGSdqy/NevIlZ4RPzVPYDaqJgzOV0uusG9hQ X-Received: by 2002:a62:5fc1:0:b0:62d:dad9:3d74 with SMTP id t184-20020a625fc1000000b0062ddad93d74mr6178565pfb.23.1681094252753; Sun, 09 Apr 2023 19:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681094252; cv=none; d=google.com; s=arc-20160816; b=r9O3bpKK/5KbpNEKuucbhB81+xytsj7RhiiNqsrTLtoXfM63olj619vIdjd3xF8Vfm 0YtBFSZBbpCxHvkV0jqKEtOBpds04hEWPg+xBDeYQsNHjXB0ZLerWwRUywySktvXf5Sv 1S/dfM1ga0sZB0eP6sN3JRQYPhzxAOUmUBDG5C/NpMpEt+6BWe98RnoAK5ynCvM3FV2i t/JqzpPfJPjs6NTE+wQIUV9pk5FXpCKZVlI5dXmxU0JZ6yiyMVC0bmMCfd/KxprrN2sB 7Ok9ZsBwucuCBLvdVrhPdxM6jSIyl+ZEHbl6ieyCiBsbjZzD7slujm3hq8OxI732Wl7i A7jA== 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=qvjY2htA0bE25M2xCNlSvvPZhRo6S8aG9CJOCArR7SA=; b=vuibWqAK9IQmCUWQGfsifVpNRAJcA9D9+KWxuj6sk8RPwXHrt3Jd/o+awMDg+I8jUg /bdTXYamW4v7+kTW1PyEYHsHMs8cYQbDgom3k5Uddq1outFtMbxokakN8pbUqXpyW8V+ pBV8ytkUT4+chJ2op2/d5CrBRNkMpMX1WiPABgl1BJ6YKJdrJ+4wKNVyxW+VcGr/BXTf kjy1E01OnwXyp0XJ4qNXuZR9IWcNebwfVdiV+cQgVMkVzUVbNmj5GxjJUwTaye+O3uIR Flu9l91ZAD8lWCsQsi/MaqyspsPobQ1uYcVhc6jI1hZCjTxwmQF8ooELl9vZ0Kw9vN5l JCJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L0SmKFIO; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h12-20020a65480c000000b0050fb412dcc2si9688097pgs.380.2023.04.09.19.37.19; Sun, 09 Apr 2023 19:37:32 -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=L0SmKFIO; 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 S229549AbjDJCV5 (ORCPT <rfc822;yuanzuo1009@gmail.com> + 99 others); Sun, 9 Apr 2023 22:21:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjDJCV4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 9 Apr 2023 22:21:56 -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 A853E1FC4 for <linux-kernel@vger.kernel.org>; Sun, 9 Apr 2023 19:21:53 -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 43B6A60DD0 for <linux-kernel@vger.kernel.org>; Mon, 10 Apr 2023 02:21:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62A9FC433EF; Mon, 10 Apr 2023 02:21:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681093312; bh=4T3lyXoA1FoV6P5GhQMMg5O/djdkaXone30k5xsKe0I=; h=From:To:Cc:Subject:Date:From; b=L0SmKFIOvAmAlaiZ9aKuw5CvWEbwZ52C609Zv78+Db0t3wcmTt04cSrEvcPvqhA7a DDIOD+pIFtg6+vUGFSNwH8miY3ZRKv+iaBx0egZQqhgxhU9x/ZicBy7s1MA9lK8fmo JI14+MNgTvtHQCO18hRY9dE3mCbaC9PU5z9mmssPiy4SZjoBBxcbWhoFWGJ2whSFd1 gLYBFu5DRcmSv0+lafLVV3wkMnIoe4yCWnH/7Xh1IBYwHIVKG2dbTdRC4dVocndID1 1eJZURI6+rNPIroziFLImK1jt5OoSi9PTCHzjTghlSGafeTMeW0iT0zws5Cr1QZRY/ nF3nUV32e/k5Q== From: Chao Yu <chao@kernel.org> To: jaegeuk@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Chao Yu <chao@kernel.org> Subject: [PATCH] f2fs: remove unneeded set_page_private() in f2fs_delete_entry() Date: Mon, 10 Apr 2023 10:21:45 +0800 Message-Id: <20230410022145.1840993-1-chao@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762755087193117320?= X-GMAIL-MSGID: =?utf-8?q?1762755087193117320?= |
Series |
f2fs: remove unneeded set_page_private() in f2fs_delete_entry()
|
|
Commit Message
Chao Yu
April 10, 2023, 2:21 a.m. UTC
As detach_page_private() should have reset page's private field.
Signed-off-by: Chao Yu <chao@kernel.org>
---
fs/f2fs/dir.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c index d6dd8327e82d..d5c7c8e55eb4 100644 --- a/fs/f2fs/dir.c +++ b/fs/f2fs/dir.c @@ -912,7 +912,6 @@ void f2fs_delete_entry(struct f2fs_dir_entry *dentry, struct page *page, f2fs_remove_dirty_inode(dir); detach_page_private(page); - set_page_private(page, 0); } f2fs_put_page(page, 1);