]> 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)
commit57d8e336d907a582d5af64aae373675aefc7df06
tree013e69cfb2fa4ece069ba0bcc5243cd251085ca1
parenta990c3e52fc447e4e490773001efa6af313d31e7
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