NFS: put open context on error in nfs_flush_multi
authorFred Isaman <iisaman@netapp.com>
Fri, 20 Apr 2012 18:47:35 +0000 (14:47 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 20 Apr 2012 18:57:30 +0000 (14:57 -0400)
Cc: <stable@vger.kernel.org>
Signed-off-by: Fred Isaman <iisaman@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/write.c

index 9b8d4d42a8af4b78293b61449a508098432a4b40..c07462320f6b5c41c09ba2ff054e75048951691f 100644 (file)
@@ -1019,7 +1019,7 @@ out_bad:
        while (!list_empty(res)) {
                data = list_entry(res->next, struct nfs_write_data, list);
                list_del(&data->list);
-               nfs_writedata_free(data);
+               nfs_writedata_release(data);
        }
        nfs_redirty_request(req);
        return -ENOMEM;