That's what fsync is for. Moreover, this can lead to some squirreliness
if we trigger this from _flush_log().
Signed-off-by: Sage Weil <sage@redhat.com>
return 0;
}
if (length == 0) {
- if (h->file->dirty) {
- dout(10) << __func__ << " " << h << " no data, flushing metadata on "
- << h->file->fnode << dendl;
- return _flush_log();
- }
- dout(10) << __func__ << " " << h << " no dirty data or metadata on "
+ dout(10) << __func__ << " " << h << " no dirty data on "
<< h->file->fnode << dendl;
return 0;
}