From: Trond Myklebust Date: Sat, 14 Apr 2007 23:10:12 +0000 (-0400) Subject: NFS: Ensure PG_writeback is cleared when writeback fails X-Git-Tag: v2.6.21-rc7~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a6d41b32a17ca902ef50fdfa170d7f23264bad5;p=pandora-kernel.git NFS: Ensure PG_writeback is cleared when writeback fails If the writebacks are cancelled via nfs_cancel_dirty_list, or due to the memory allocation failing in nfs_flush_one/nfs_flush_multi, then we must ensure that the PG_writeback flag is cleared. Also ensure that we actually own the PG_writeback flag whenever we schedule a new writeback by making nfs_set_page_writeback() return the value of test_set_page_writeback(). The PG_writeback page flag ends up replacing the functionality of the PG_FLUSHING nfs_page flag, so we rip that out too. Signed-off-by: Trond Myklebust Cc: Peter Zijlstra Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed