mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fs: drop useless condition from inode_needs_update_time
@ 2022-09-22 17:25 Jeff Layton
  0 siblings, 0 replies; only message in thread
From: Jeff Layton @ 2022-09-22 17:25 UTC (permalink / raw)
  To: viro; +Cc: linux-fsdevel, linux-kernel

Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
 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 *inode, struct timespec64 *now)
 	if (IS_I_VERSION(inode) && inode_iversion_need_inc(inode))
 		sync_it |= S_VERSION;
 
-	if (!sync_it)
-		return 0;
-
 	return sync_it;
 }
 
-- 
2.37.3


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-22 17:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-22 17:25 [PATCH] fs: drop useless condition from inode_needs_update_time Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®