Refactor writepage_sync
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Tue, 20 Oct 2009 11:38:53 +0000 (12:38 +0100)
committerDerrick Brashear <shadow|account-1000005@unknown>
Thu, 22 Oct 2009 18:17:17 +0000 (11:17 -0700)
commite16ce66634a85a870dae3323a2257953cfe571be
tree352876c81988a2e77fe1c3627de28768ba405af9
parent234acbbb84534c5327bb69a2fcb7675dcd0d1198
Refactor writepage_sync

This change refactors writepage_sync into 4 functions -
*) prepare_writeback() readies a vnode for writeback, and performs
   the anti-recursion check.
*) dopartialwrite() intialises a request and performs the call to
   DoPartialWrite
*) page_writeback() does the actual work of writing an AFS page into
   the disk cache page
*) complete_writeback clears the writeback flag from a vnode

There should be no change to the current behaviour of writepage_sync,
these modifications are the first part of a fix to our writepage()
behaviour.

Reviewed-on: http://gerrit.openafs.org/712
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Marc Dionne <marc.c.dionne@gmail.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/afs/LINUX/osi_vnodeops.c