We still need to sync out metadata on size and mtime changes, and we
definitely do not want to delay syncing just because we only have
write caps that are dirty. Remove the mask and check_caps whenever
any caps are dirty.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
ldout(cct, 15) << "using return-valued form of _fsync" << dendl;
}
- if (!syncdataonly && (in->dirty_caps & ~CEPH_CAP_ANY_FILE_WR)) {
+ if (!syncdataonly && in->dirty_caps) {
check_caps(in, true);
if (in->flushing_caps)
flush_tid = last_flush_tid;