If the caller perms is different with the current dirtier's, we
can still cache the attributes locally if possible, but will
mark the ctime needs to be updated forcely and the request will
implicitly flush the dirty caps for us.
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
569770afe52726e1df970c2219b8aa2c080e8a31)
* case later, we can build a more complex pipelined cap writeback
* infrastructure...
*/
- if (!mask)
- mask |= CEPH_SETATTR_CTIME;
- goto force_request;
+ mask |= CEPH_SETATTR_CTIME;
}
if (!mask) {
return 0;
}
-force_request:
MetaRequest *req = new MetaRequest(CEPH_MDS_OP_SETATTR);
filepath path;