Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp166445lqd; Tue, 23 Apr 2024 20:07:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUAeI6wPLx1xQtOHeAeME0EbWAn193ENc14X2OSY4KzFvBpUaFFq7qx2CNx5kiCH1khR9KJ5uKidOPWJArAP3Zgl1e5G5JqDyHvQUSz2w== X-Google-Smtp-Source: AGHT+IEoRQL6UNxcJX4ZqPFqFl+kQ0zWsf6lNuVSpDLKaeyIk6Arutj/eNNkQeJNj66dg46Y8JI+ X-Received: by 2002:a05:6a00:2e24:b0:6ea:74d4:a01c with SMTP id fc36-20020a056a002e2400b006ea74d4a01cmr1714794pfb.14.1713928024711; Tue, 23 Apr 2024 20:07:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713928024; cv=pass; d=google.com; s=arc-20160816; b=Q9Sb9skEclhVkIB56UENUO+d8dssojaXQM05e8fMrkNb8gvqC+IOXpp52ZQbEdJNpJ h5P9wH7ygcFGw/sDocDGxZtWnN0ohtl7NHYFSBSxPvjlM962av5g4q7/hDeMjskKusdX ewWYZD7Mwk4t5FYQin1lCvcg5fIe31AXmYPTGLeqd8VrCQscZbbCv6Pb4yCaQv8Pgfbj mTvopyKr3xgrXrDSsA+ClFDR5+spVbufVxoG0r0UXgb9eFRfCoh39yCcViaGT/YWpKRB 4vebefe60Toh1OJ6diUgj4OWoaSF7HOzXeqs3sPavix0AA+0pw8+LW4BxHGFOaCV1mXu D5Jw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CAQc0dxjG4WwrYu8tBTgkzbZ1ejTUo4IBL2j5Cld98w=; fh=y/6+YKGvhjNjVwXPCyZFKMLfa1KQd7Ce4VxRHk5NsWI=; b=n4PtisCrGdSlzg1degRX1cPTSc2Q0cn7lDSNKUyCnkqlNe7lS7cSTDjguRKusIbgQb +vcgtFtDWW8Dhz9Rhcrnmk7SrXBswdUyQTjJxNFRL7QEPj8f9DrbJyJ/b3y8FCHtprYL nT0W0PqXb+qWblm9D+CBLzFTzaa0kvqoETDPWLULYxPM1eevixB2LSY9eDfiw+kwF0sZ 0gaBtppRB1AXL99ezPbagK45j9UqcDDoOD3j6OrEnP3h7ADjovdzjyAIQnXzaXFSUUsI Wvi6e0U+7Dqoxthac9ggTGds+JmXMjazCvyHpE8gpji2wkxQZtiDJtPnfLlTi1qJ9v4w RxEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LYfXxw3p; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-156199-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156199-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q25-20020a63f959000000b005cdfa6ec001si10596369pgk.380.2024.04.23.20.07.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 20:07:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156199-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LYfXxw3p; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-156199-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156199-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9E3BD284E5D for ; Wed, 24 Apr 2024 03:07:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D8F65126F04; Wed, 24 Apr 2024 03:06:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LYfXxw3p" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0FEB6339A1; Wed, 24 Apr 2024 03:06:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713928017; cv=none; b=sqFoxDToICWEETc1pk8/HpyDCrmN+IJvTdS6a2uwsrOzctv+Osbmkl9C/IwoTdRripE49B1NDitUZsRnY8rGoeFtH+2xUixBGusoNL5uBF0sEg038++NmPLOuaR1LpTVaQktrcKH3yK3OYpZBLH7de1r8+1dD0L2cSrI4HVkGn0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713928017; c=relaxed/simple; bh=HAm8npkjU9W9knreApov7ysuQwghSu0sfaePTT/qFdM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MYm87SehUo5Jpxw3rGYAlhy+qBn4EDy/GSPaMcYefbaYUZJB05Hq5V4QbfkSdm8RVcgMHinfNkd3MnnB49apRwi9O+tmU+gBMh1N6P1muOiEvR2gz7Wl043VTPjYeCtFmv/qslGwtCmPjdoWAZJsU9ca7Aa7d8TOrYCi4cDfWW8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LYfXxw3p; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8AED8C116B1; Wed, 24 Apr 2024 03:06:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713928016; bh=HAm8npkjU9W9knreApov7ysuQwghSu0sfaePTT/qFdM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LYfXxw3p4wmKieHARFTBzsmHd7aZLi/XmBIFSyRdmgBtB9/1KsRNKMXYtkwmWDczJ WgXdVF7y7GPi8iK+q/qIdEP5v8Gsak1sml73TpWMoXjdbKrHU6RntqsOVbS9/Nzu80 2VjASi+6BRpmo1iKP/fL4A7yiRhu4l2EepmtyORboMix6Udl+Yj2hEsCYqHgdlfCY8 /TR/UCjZfjIp0zNyMflTpeQB1Igx7pOpdVfyPupT2aOZ/+wG/UvAXQ0ag4Asxihi9X XV7ctIpglPk+qIle93BDb59IvJi+gEJOIp8bihRNVLlTKUYUxddDWq8KwMq4A4gA4O sGlPFPkDBbXXA== Date: Tue, 23 Apr 2024 20:06:56 -0700 From: "Darrick J. Wong" To: Jiapeng Chong Cc: chandan.babu@oracle.com, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, Abaci Robot Subject: Re: [PATCH] xfs: Remove unused function xrep_dir_self_parent Message-ID: <20240424030656.GC360919@frogsfrogsfrogs> References: <20240424020638.81487-1-jiapeng.chong@linux.alibaba.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240424020638.81487-1-jiapeng.chong@linux.alibaba.com> On Wed, Apr 24, 2024 at 10:06:38AM +0800, Jiapeng Chong wrote: > The function are defined in the dir_repair.c file, but not called > elsewhere, so delete the unused function. > > fs/xfs/scrub/dir_repair.c:186:1: warning: unused function 'xrep_dir_self_parent'. > > Reported-by: Abaci Robot > Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8867 > Signed-off-by: Jiapeng Chong Yep, not used anywhere in my patchsets. Thank you for catching this and cleaning it up. Reviewed-by: Darrick J. Wong --D > --- > fs/xfs/scrub/dir_repair.c | 21 --------------------- > 1 file changed, 21 deletions(-) > > diff --git a/fs/xfs/scrub/dir_repair.c b/fs/xfs/scrub/dir_repair.c > index 38957da26b94..f8450c7f99f4 100644 > --- a/fs/xfs/scrub/dir_repair.c > +++ b/fs/xfs/scrub/dir_repair.c > @@ -176,27 +176,6 @@ xrep_setup_directory( > return 0; > } > > -/* > - * If we're the root of a directory tree, we are our own parent. If we're an > - * unlinked directory, the parent /won't/ have a link to us. Set the parent > - * directory to the root for both cases. Returns NULLFSINO if we don't know > - * what to do. > - */ > -static inline xfs_ino_t > -xrep_dir_self_parent( > - struct xrep_dir *rd) > -{ > - struct xfs_scrub *sc = rd->sc; > - > - if (sc->ip->i_ino == sc->mp->m_sb.sb_rootino) > - return sc->mp->m_sb.sb_rootino; > - > - if (VFS_I(sc->ip)->i_nlink == 0) > - return sc->mp->m_sb.sb_rootino; > - > - return NULLFSINO; > -} > - > /* > * Look up the dotdot entry and confirm that it's really the parent. > * Returns NULLFSINO if we don't know what to do. > -- > 2.20.1.7.g153144c > >