From: Christoph Hellwig Date: Thu, 20 Nov 2025 06:47:27 +0000 (+0100) Subject: orangefs: use inode_update_timestamps directly X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eff094a58d00acf1c84f729c3715fc4cf7fddcee;p=thirdparty%2Flinux.git 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 Link: https://patch.msgid.link/20251120064859.2911749-7-hch@lst.de Reviewed-by: Jeff Layton Reviewed-by: Jan Kara Signed-off-by: Christian Brauner --- diff --git a/fs/orangefs/inode.c b/fs/orangefs/inode.c index a01400cd41fdf..55f6c80268124 100644 --- a/fs/orangefs/inode.c +++ b/fs/orangefs/inode.c @@ -878,7 +878,9 @@ int orangefs_update_time(struct inode *inode, int flags) gossip_debug(GOSSIP_INODE_DEBUG, "orangefs_update_time: %pU\n", get_khandle_from_ino(inode)); - flags = generic_update_time(inode, flags); + + flags = inode_update_timestamps(inode, flags); + memset(&iattr, 0, sizeof iattr); if (flags & S_ATIME) iattr.ia_valid |= ATTR_ATIME;