Skip to content

Commit

Permalink
fix writeback logic
Browse files Browse the repository at this point in the history
  • Loading branch information
123abcpp committed Jun 11, 2024
1 parent bec2460 commit 6c216e7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qlib/kernel/fs/host/hostinodeop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -894,8 +894,10 @@ impl HostInodeOp {
};

#[cfg(feature = "cc")]
if is_cc_enabled(){
self.lock().Mappable().lock().SyncWrite(offset, srcs);
if is_cc_enabled() {
if let Some(mappable) = self.lock().mappable.clone() {
mappable.lock().SyncWrite(offset, srcs);
}
}

let mut buf = DataBuff::New(size);
Expand Down

0 comments on commit 6c216e7

Please sign in to comment.