ceph: ignore the truncate when size won't change with Fx caps issued
authorXiubo Li <xiubli@redhat.com>
Fri, 8 Oct 2021 08:23:58 +0000 (16:23 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Nov 2021 02:29:52 +0000 (03:29 +0100)
commite90334e89b0c3caa64213ba80fbbc053c7975c66
tree013e69cfb2fa4ece069ba0bcc5243cd251085ca1
parente1c9788cb39777e81ebfbf31ae80b4ec14eb6f6d
ceph: ignore the truncate when size won't change with Fx caps issued

If the new size is the same as the current size, the MDS will do nothing
but change the mtime/atime. POSIX doesn't mandate that the filesystems
must update them in this case, so just ignore it instead.

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