summaryrefslogtreecommitdiffstats
path: root/fs/afs/internal.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2017-03-16 16:27:48 +0000
committerDavid Howells <dhowells@redhat.com>2017-03-16 16:29:30 +0000
commit7286a35e893176169b09715096a4aca557e2ccd2 (patch)
treee49fd2d302b2d8b460219293b0bdb474ffd1ba52 /fs/afs/internal.h
parent6d06b0d25209c80e99c1e89700f1e09694a3766b (diff)
downloadblackbird-op-linux-7286a35e893176169b09715096a4aca557e2ccd2.tar.gz
blackbird-op-linux-7286a35e893176169b09715096a4aca557e2ccd2.zip
afs: Fix afs_kill_pages()
Fix afs_kill_pages() in two ways: (1) If a writeback has been partially flushed, then if we try and kill the pages it contains, some of them may no longer be undergoing writeback and end_page_writeback() will assert. Fix this by checking to see whether the page in question is actually undergoing writeback before ending that writeback. (2) The loop that scans for pages to kill doesn't increase the first page index, and so the loop may not terminate, but it will try to process the same pages over and over again. Fix this by increasing the first page index to one after the last page we processed. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/internal.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud