summaryrefslogtreecommitdiffstats
path: root/include/linux/nfs_page.h
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-04-14 19:10:12 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-04-14 21:46:48 -0700
commit5a6d41b32a17ca902ef50fdfa170d7f23264bad5 (patch)
tree1a380f2e7fe7858da3dfb53ec85e3d4b100c948f /include/linux/nfs_page.h
parent60fa3f769f7651a60125a0f44e3ffe3246d7cf39 (diff)
downloadlinux-5a6d41b32a17ca902ef50fdfa170d7f23264bad5.tar.gz
linux-5a6d41b32a17ca902ef50fdfa170d7f23264bad5.tar.bz2
linux-5a6d41b32a17ca902ef50fdfa170d7f23264bad5.zip
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 <Trond.Myklebust@netapp.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/nfs_page.h')
-rw-r--r--include/linux/nfs_page.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/nfs_page.h b/include/linux/nfs_page.h
index 2e555d49c9b7..d111be639140 100644
--- a/include/linux/nfs_page.h
+++ b/include/linux/nfs_page.h
@@ -31,7 +31,6 @@
#define PG_NEED_COMMIT 1
#define PG_NEED_RESCHED 2
#define PG_NEED_FLUSH 3
-#define PG_FLUSHING 4
struct nfs_inode;
struct nfs_page {