Re: [PATCH] Fix mpage_writepage() for pages with buffers
From: Andrew Morton
Date: Tue Oct 10 2017 - 15:44:28 EST
On Fri, 6 Oct 2017 14:15:41 -0700 Matthew Wilcox <willy@xxxxxxxxxxxxx> wrote:
> When using FAT on a block device which supports rw_page, we can hit
> BUG_ON(!PageLocked(page)) in try_to_free_buffers(). This is because we
> call clean_buffers() after unlocking the page we've written. Introduce a
> new clean_page_buffers() which cleans all buffers associated with a page
> and call it from within bdev_write_page().
This is all pretty mature code (isn't it?). Any idea why this bug
popped up now?