ceph: report the inode version in getattr if requested
authorJeff Layton <jlayton@kernel.org>
Fri, 5 Aug 2022 17:50:02 +0000 (13:50 -0400)
committerJeff Layton <jlayton@kernel.org>
Thu, 26 Jan 2023 12:00:06 +0000 (07:00 -0500)
commitf6102994338c950f55233643c90f334305996758
tree012480a85ea131d9235e81b8922c9783144d9174
parent61a968b4f05e3c8880cfb127f122d7a3af882afa
ceph: report the inode version in getattr if requested

When getattr requests the STX_CHANGE_COOKIE, request the full gamut of
caps (similarly to how ctime is handled). When the change attribute
seems to be valid, return it in the change_cookie field and set the flag
in the reply mask. Also, unconditionally enable
STATX_ATTR_CHANGE_MONOTONIC.

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/ceph/inode.c