]> git.baikalelectronics.ru Git - kernel.git/commit
AFS: further write support fixes
authorDavid Howells <dhowells@redhat.com>
Thu, 10 May 2007 10:15:23 +0000 (03:15 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 10 May 2007 16:26:52 +0000 (09:26 -0700)
commit989e6072ac7546437a58af01701fb88213160622
tree8bd516e07d2cb8b7578d9783ca45d0a23290dc23
parent174b2eadc333c287ef8babb484e9e7cf9342ab55
AFS: further write support fixes

Further fixes for AFS write support:

 (1) The afs_send_pages() outer loop must do an extra iteration if it ends
     with 'first == last' because 'last' is inclusive in the page set
     otherwise it fails to send the last page and complete the RxRPC op under
     some circumstances.

 (2) Similarly, the outer loop in afs_pages_written_back() must also do an
     extra iteration if it ends with 'first == last', otherwise it fails to
     clear PG_writeback on the last page under some circumstances.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/afs/rxrpc.c
fs/afs/write.c