From nobody Thu Apr 2 15:07:43 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62D67C6FA82 for ; Thu, 22 Sep 2022 17:25:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231890AbiIVRZg (ORCPT ); Thu, 22 Sep 2022 13:25:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231185AbiIVRZa (ORCPT ); Thu, 22 Sep 2022 13:25:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCA3C6CF45; Thu, 22 Sep 2022 10:25:28 -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 6FEE8636C7; Thu, 22 Sep 2022 17:25:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F27AC433D6; Thu, 22 Sep 2022 17:25:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663867527; bh=e0X1iUxMxiCA6glS9Z2DZTekN0HHTHz2fCHosTaQnOg=; h=From:To:Cc:Subject:Date:From; b=PdKGODP918YS/u/6hcye4iTXDK+Xygt1ox0HTrh1C2RRJ/dGaY6mNI6T49VcB0Y3u DCGJgXPLTfy7jvw1/iUOL0FJ+4xEI4lNHWsIjNpNFrnQtXzKEBGPaF7dxfJbPWUCJa sdJkFg6W+Ur+wpZErO7e23Gy5ti5JTuVXRIjgK4qZCm3kGq0KUgv3wdwaaOCL7ljie cvxpMEjtLdgEBPwAU4mcZ+mtMeaR1DRHFK0uLhCcy3lHXHUw4+BIXlDk01skQcdWoz C9x6WwIhEbSrkvN1rI1SOQjryDUzmryAaCS6WMvksXPpvFVZrDsKc8jwQ7Ku+682gb MTnwtB4+8zxAA== From: Jeff Layton To: viro@zeniv.linux.org.uk Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] fs: drop useless condition from inode_needs_update_time Date: Thu, 22 Sep 2022 13:25:25 -0400 Message-Id: <20220922172525.114489-1-jlayton@kernel.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Signed-off-by: Jeff Layton --- fs/inode.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/inode.c b/fs/inode.c index ba1de23c13c1..6d23ca5dc788 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -2072,9 +2072,6 @@ static int inode_needs_update_time(struct inode *inod= e, struct timespec64 *now) if (IS_I_VERSION(inode) && inode_iversion_need_inc(inode)) sync_it |=3D S_VERSION; =20 - if (!sync_it) - return 0; - return sync_it; } =20 --=20 2.37.3