diff options
| author | Matthew Wilcox <[email protected]> | 2017-10-13 22:58:15 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2017-10-13 23:18:33 +0000 |
| commit | f892760aa66a2d657deaf59538fb69433036767c (patch) | |
| tree | 3a1cbccecb6c363e4fcc922127867ca89972e655 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | linux/kernel.h: add/correct kernel-doc notation (diff) | |
| download | kernel-f892760aa66a2d657deaf59538fb69433036767c.tar.gz kernel-f892760aa66a2d657deaf59538fb69433036767c.zip | |
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 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
