| 155 | |
| 156 | |
| 157 | static inline void insertDirty(BufferControl* bcb, BufferDesc* bdb) |
| 158 | { |
| 159 | if (bdb->bdb_dirty.que_forward != &bdb->bdb_dirty) |
| 160 | return; |
| 161 | |
| 162 | Sync dirtySync(&bcb->bcb_syncDirtyBdbs, "insertDirty"); |
| 163 | dirtySync.lock(SYNC_EXCLUSIVE); |
| 164 | |
| 165 | if (bdb->bdb_dirty.que_forward != &bdb->bdb_dirty) |
| 166 | return; |
| 167 | |
| 168 | bcb->bcb_dirty_count++; |
| 169 | QUE_INSERT(bcb->bcb_dirty, bdb->bdb_dirty); |
| 170 | } |
| 171 | |
| 172 | static inline void removeDirty(BufferControl* bcb, BufferDesc* bdb) |
| 173 | { |
no test coverage detected