afs: ->writepage() shouldn't call clear_page_dirty_for_io()
authorDavid Howells <dhowells@redhat.com>
Thu, 16 Mar 2017 16:27:49 +0000 (16:27 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 16 Mar 2017 16:29:30 +0000 (16:29 +0000)
commit65a151094edeb04e8f5f6f1502028e2383e81bb8
treee1c79de194d66e4f6c065c54d6e198c0c68ef98c
parent954cd6dc02a65065aecb7150962c0870c5b0e322
afs: ->writepage() shouldn't call clear_page_dirty_for_io()

The ->writepage() op shouldn't call clear_page_dirty_for_io() as that has
already been called by the caller.

Fix afs_writepage() by moving the call out of
afs_write_back_from_locked_page() to afs_writepages_region() where it is
needed.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/write.c