diff options
author | Matthew Wilcox <[email protected]> | 2017-10-13 15:58:15 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2017-10-13 16:18:33 -0700 |
commit | f892760aa66a2d657deaf59538fb69433036767c (patch) | |
tree | 3a1cbccecb6c363e4fcc922127867ca89972e655 /net/lapb/lapb_timer.c | |
parent | e8c97af0c1f23d6ffedcaa3918861f2595e1db62 (diff) |
fs/mpage.c: fix mpage_writepage() for pages with buffers
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().
[[email protected]: s/PAGE_SIZE/~0U/ per Linus and Matthew]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Matthew Wilcox <[email protected]>
Reported-by: Toshi Kani <[email protected]>
Reported-by: OGAWA Hirofumi <[email protected]>
Tested-by: Toshi Kani <[email protected]>
Acked-by: Johannes Thumshirn <[email protected]>
Cc: Ross Zwisler <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions