On Wed, Jan 27, 2021 at 11:56:39AM -0500, Josef Bacik wrote: > On 1/26/21 3:34 AM, Qu Wenruo wrote: > > @@ -8345,7 +8347,11 @@ vm_fault_t btrfs_page_mkwrite(struct vm_fault *vmf) > > wait_on_page_writeback(page); > > > > lock_extent_bits(io_tree, page_start, page_end, &cached_state); > > - set_page_extent_mapped(page); > > + ret2 = set_page_extent_mapped(page); > > + if (ret2 < 0) { > > + ret = vmf_error(ret2); > > + goto out_unlock; > > + } > > Sorry I missed this bit in my last reply, you need a > > ret = vmf_error(ret2); > unlock_extent_cached(io_tree, page_start, page_end, &cached_state); > goto out_unlock;
Folded to the patch, thanks.