Commit 1b783a69 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Add pagecache_add lock to buffered IO path, fault path

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 6d01598e
......@@ -571,13 +571,13 @@ vm_fault_t bch2_page_mkwrite(struct vm_fault *vmf)
}
bch2_set_page_dirty(c, inode, page, &res, 0, len);
bch2_page_reservation_put(c, inode, &res);
wait_for_stable_page(page);
out:
bch2_pagecache_add_put(&inode->ei_pagecache_lock);
sb_end_pagefault(inode->v.i_sb);
bch2_page_reservation_put(c, inode, &res);
return ret;
}
......
Markdown is supported
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