]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb68515dc2078f08304c452bceaa05eb01d9b5115
tree013e69cfb2fa4ece069ba0bcc5243cd251085ca1
parent47bb78616837520fac75349378c62b300c1c033f
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