]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
orangefs: use inode_update_timestamps directly
authorChristoph Hellwig <hch@lst.de>
Thu, 20 Nov 2025 06:47:27 +0000 (07:47 +0100)
committerChristian Brauner <brauner@kernel.org>
Wed, 26 Nov 2025 13:50:10 +0000 (14:50 +0100)
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>
fs/orangefs/inode.c

index a01400cd41fdfc5b48c814b9e708d81760723221..55f6c80268124d3da202b830cef91b30a0e1cf6c 100644 (file)
@@ -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;