Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3083224rdb; Wed, 15 Nov 2023 22:26:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IHz8AOTAwquo6RrMEDHf0ERlH5+tkDEnng8YUB9ChDiAWtwG2t7PvIuvpbu/sXDyYD4JB2u X-Received: by 2002:a17:903:24f:b0:1cc:449b:68ad with SMTP id j15-20020a170903024f00b001cc449b68admr7682876plh.44.1700115991272; Wed, 15 Nov 2023 22:26:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700115991; cv=none; d=google.com; s=arc-20160816; b=NXiHqFoAoa+JN55aqffThHjotsmLmrfeaGFeaiKxS53yxDQmfcTmlFN0eBawssNW5V RS+CY6thoBF+1z5e6hqOb0hbBTPbzv2KAoyjavqnZqcp31UwRfD8A1aSZuk+zdct8pB8 ddfRgSt+9KGMa8dPxtS+kNWzYsSNe6VdEWKW+PEtXs5mmBTDL9vTPT/nbrEBRf6F/mzj V5mL6dBtatH4vRbKT1qadZylvsUW2iSQ5Q1j/YDw9seCd2vzFmuLdMjVncpBQPJQna4u kOJqkP9O8ajAwrXQUoW7rkO+FAZu+GVogIlob6QHuSQ6WhYDCggfgNxlDWf7K/BJt1tI /YOg== 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=g1hZefIHY8SFwKkLVv2TQxgJr4q8W7A1nr2ia8yTO8Q=; fh=X1/oBJvTGJUQ0YtRp03u+3tPfRw/dXXALWynfOSlfQQ=; b=wY5FXVQ/ag3AzI2cDTjfuZqrHHKtokBYvTPJ4sWYUXOq/baOaAWGtDxcTDF50KSHIa JCBBFk3inGDqE4ItfTfxU/Unbk/E5hesG7xIADVdN3tXJGZ34SG0KBMa7PLKxUtMPQY3 99WiLBqLcXVeI6Gd4u54suVS1WHyMtujzomMUJt3aPmb2OKe8iC+XqTZseRBp8/636Hn uiqBh7WjXWdgyoHy8iaFiQjJQEGdIasouihYS3pBJGVu0srkyrWqlC6GBntROnoTvyr6 rHmqDA9tlT4Jyh5KjviUAdFoW9/H0WRnUbz52orSGJk51vG8S+r+SMieGeNeqKxdy2gb 1Xxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="tjzg/XJu"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id ju17-20020a170903429100b001cc476c896dsi11119198plb.543.2023.11.15.22.26.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 22:26:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="tjzg/XJu"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 04307801D80A; Wed, 15 Nov 2023 22:26:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229786AbjKPG0H (ORCPT + 99 others); Thu, 16 Nov 2023 01:26:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjKPG0G (ORCPT ); Thu, 16 Nov 2023 01:26:06 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3039B199 for ; Wed, 15 Nov 2023 22:26:03 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A5B1C433C7; Thu, 16 Nov 2023 06:26:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700115962; bh=LdQ7fpYx4XjHDzsyZXb0qCihyPciooXY4TAlO70WFe0=; h=From:To:Cc:Subject:Date:From; b=tjzg/XJu3pN7sLj7482nvRPWD4ZfXv+y3cwgmIn6dzesDklcub5lzV2vPAqSnq+xi 5sZ7lQgMTzc2xmxBS6TyyrrJiYgw14NCfohsaxtFcZyGBdtI2aepFCjc6SiL1R5AWa 7qSuKpJq3NNgR4vN4xPVMO2APRWkFgIiSBIrB0vXvcKmhfTw/bwSbELJZgnigeMgtH ojsdDCKgTnsOmXziWm7yNe61anSBtCITcLPKy1/W1jbUrXpqBaA6KMid+xG/03Gg7S vcvqH0+aXghk7vYHW3L9C9998PKLak/kDOGlwGBodDMS4ztHxM7QyZ4VgE36uIgXuP JognBF4pI0rWw== From: Chao Yu To: jaegeuk@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Chao Yu Subject: [PATCH 1/3] f2fs: clean up w/ dotdot_name Date: Thu, 16 Nov 2023 14:25:54 +0800 Message-Id: <20231116062556.2451839-1-chao@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.3 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 agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 15 Nov 2023 22:26:18 -0800 (PST) Just cleanup, no logic changes. Signed-off-by: Chao Yu --- fs/f2fs/namei.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index d0053b0284d8..a9360ee02da1 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -459,7 +459,6 @@ static int __recover_dot_dentries(struct inode *dir, nid_t pino) { struct f2fs_sb_info *sbi = F2FS_I_SB(dir); struct qstr dot = QSTR_INIT(".", 1); - struct qstr dotdot = QSTR_INIT("..", 2); struct f2fs_dir_entry *de; struct page *page; int err = 0; @@ -497,13 +496,13 @@ static int __recover_dot_dentries(struct inode *dir, nid_t pino) goto out; } - de = f2fs_find_entry(dir, &dotdot, &page); + de = f2fs_find_entry(dir, &dotdot_name, &page); if (de) f2fs_put_page(page, 0); else if (IS_ERR(page)) err = PTR_ERR(page); else - err = f2fs_do_add_link(dir, &dotdot, NULL, pino, S_IFDIR); + err = f2fs_do_add_link(dir, &dotdot_name, NULL, pino, S_IFDIR); out: if (!err) clear_inode_flag(dir, FI_INLINE_DOTS); -- 2.40.1