flush and synchronize a batch of contiguous dirty immutable blocks in file dirty blocks will be changed to clean blocks (not discarded) Note: This function can be invoked as part of background flushing
| 1246 | // dirty blocks will be changed to clean blocks (not discarded) |
| 1247 | // Note: This function can be invoked as part of background flushing |
| 1248 | fdb_status bcache_flush_immutable(struct filemgr *file) |
| 1249 | { |
| 1250 | struct fnamedic_item *fname_item; |
| 1251 | fdb_status status = FDB_RESULT_SUCCESS; |
| 1252 | fname_item = file->bcache; |
| 1253 | if (fname_item) { |
| 1254 | status = _flush_dirty_blocks(fname_item, true, true, true); |
| 1255 | } |
| 1256 | return status; |
| 1257 | } |
| 1258 | |
| 1259 | // remove all dirty blocks of the FILE |
| 1260 | // (they are only discarded and not written back) |
no test coverage detected