X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fnfs%2Fwrite.c;h=883dd4a1c157599284f3bae5127fa69418ec06e1;hb=79acbb3ff2d8095b692e1502b9eb2ccec348de26;hp=b674462793d3375cf2adab2d642a8526e956fa0d;hpb=ba21fe71725f94792330ebc3034ef2b35a36276f;p=linux-2.6 diff --git a/fs/nfs/write.c b/fs/nfs/write.c index b674462793..883dd4a1c1 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -51,13 +51,14 @@ #include #include #include -#include #include #include #include #include #include +#include + #include #include @@ -396,7 +397,7 @@ int nfs_writepages(struct address_space *mapping, struct writeback_control *wbc) out: clear_bit(BDI_write_congested, &bdi->state); wake_up_all(&nfs_write_congestion); - writeback_congestion_end(); + congestion_end(WRITE); return err; } @@ -589,10 +590,10 @@ static void nfs_cancel_commit_list(struct list_head *head) while(!list_empty(head)) { req = nfs_list_entry(head->next); + dec_zone_page_state(req->wb_page, NR_UNSTABLE_NFS); nfs_list_remove_request(req); nfs_inode_remove_request(req); - dec_zone_page_state(req->wb_page, NR_UNSTABLE_NFS); - nfs_clear_page_writeback(req); + nfs_unlock_request(req); } }