Skip to content

Commit eff094a

Browse files
Christoph Hellwigbrauner
authored andcommitted
orangefs: use inode_update_timestamps directly
Orangefs has no i_version handling and __orangefs_setattr already explicitly marks the inode dirty. So instead of the using the flags return value from generic_update_time, just call the lower level inode_update_timestamps helper directly. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://patch.msgid.link/20251120064859.2911749-7-hch@lst.de Reviewed-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent f981264 commit eff094a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

fs/orangefs/inode.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,9 @@ int orangefs_update_time(struct inode *inode, int flags)
878878

879879
gossip_debug(GOSSIP_INODE_DEBUG, "orangefs_update_time: %pU\n",
880880
get_khandle_from_ino(inode));
881-
flags = generic_update_time(inode, flags);
881+
882+
flags = inode_update_timestamps(inode, flags);
883+
882884
memset(&iattr, 0, sizeof iattr);
883885
if (flags & S_ATIME)
884886
iattr.ia_valid |= ATTR_ATIME;

0 commit comments

Comments
 (0)