lkml.org 
[lkml]   [2022]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] fs: drop useless condition from inode_needs_update_time
Date
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
\
 
 \ /
  Last update: 2022-09-22 19:27    [W:0.025 / U:0.576 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site