Commit c5045cb3 authored by 某某某's avatar 某某某
Browse files

fix rdt bug:

1. When only page which has index 0 in pagecache, put it's address in the root->rnode.
2. add codes:
  if(root->height == 0 && root->rnode){
    put_page((page_t *)root->rnode);
  }
If we donot do this, the bug is occurs when the i_mapping is free, but the page is not put, so it still in
page reclaiming list, when the page is reclaimed, we need to remove it frome pagecache, but the i_mapping is
freed.
parent acdf0b71
Showing with 170 additions and 157 deletions
+170 -157
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment