Home
last modified time | relevance | path

Searched hist:"9 ba2eb25f017800c3d00eac2bbc3c99451c3bae2" (Results 1 – 1 of 1) sorted by relevance

/linux/fs/bcachefs/
H A Dfs-io.cdiff 9ba2eb25f017800c3d00eac2bbc3c99451c3bae2 Fri Oct 09 06:09:20 CEST 2020 Kent Overstreet <kent.overstreet@gmail.com> bcachefs: Fix __bch2_truncate_page()

__bch2_truncate_page() will mark some of the blocks in a page as
unallocated. But, if the page is mmapped (and writable), every block in
the page needs to be marked dirty, else those blocks won't be written by
__bch2_writepage().

The solution is to change those userspace mappings to RO, so that we
force bch2_page_mkwrite() to be called again.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>