summaryrefslogtreecommitdiffstats
path: root/fs/ceph/caps.c
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2018-04-25 17:30:23 +0800
committerIlya Dryomov <idryomov@gmail.com>2018-06-04 20:45:55 +0200
commit49a9f4f6714ec0ca2c6ada2ce764fbdd694962ee (patch)
tree7402e8789a4102a387512fd195b703d3da32eaf7 /fs/ceph/caps.c
parent4e9906e7985b962ca3b9f8ab66c0353e6e3ab45e (diff)
downloadlinux-49a9f4f6714ec0ca2c6ada2ce764fbdd694962ee.tar.bz2
ceph: always get rstat from auth mds
rstat is not tracked by capability. client can't know if rstat from non-auth mds is uptodate or not. Link: http://tracker.ceph.com/issues/23538 Signed-off-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/caps.c')
-rw-r--r--fs/ceph/caps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c
index 23dbfae16156..1b9f611c9dfe 100644
--- a/fs/ceph/caps.c
+++ b/fs/ceph/caps.c
@@ -69,6 +69,8 @@ static char *gcap_string(char *s, int c)
*s++ = 'w';
if (c & CEPH_CAP_GBUFFER)
*s++ = 'b';
+ if (c & CEPH_CAP_GWREXTEND)
+ *s++ = 'a';
if (c & CEPH_CAP_GLAZYIO)
*s++ = 'l';
return s;