]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: fix statx AT_STATX_DONT_SYNC vs AT_STATX_FORCE_SYNC check
authorXiubo Li <xiubli@redhat.com>
Mon, 11 Apr 2022 01:59:09 +0000 (09:59 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 18 May 2022 12:07:06 +0000 (14:07 +0200)
commitd28e75bb79a66f829ddcdea413f8849290793dae
tree5374b93a21d0642742dc92b0556552bc3dc02c97
parentb4d76c2f664bcfb9a125bcce46d2d772d9464174
ceph: fix statx AT_STATX_DONT_SYNC vs AT_STATX_FORCE_SYNC check

From the posix and the initial statx supporting commit comments,
the AT_STATX_DONT_SYNC is a lightweight stat and the
AT_STATX_FORCE_SYNC is a heaverweight one. And also checked all
the other current usage about these two flags they are all doing
the same, that is only when the AT_STATX_FORCE_SYNC is not set
and the AT_STATX_DONT_SYNC is set will they skip sync retriving
the attributes from storage.

Reviewed-by: David Howells <dhowells@redhat.com>
Signed-off-by: Xiubo Li <xiubli@redhat.com>
fs/ceph/inode.c