diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/pnfs.c | 2 | ||||
-rw-r--r-- | fs/nfs/write.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index 4da05e469be5..39cbac548730 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c | |||
@@ -1308,7 +1308,7 @@ pnfs_generic_pg_writepages(struct nfs_pageio_descriptor *desc) | |||
1308 | 1308 | ||
1309 | whdr = nfs_writehdr_alloc(); | 1309 | whdr = nfs_writehdr_alloc(); |
1310 | if (!whdr) { | 1310 | if (!whdr) { |
1311 | desc->pg_completion_ops->error_cleanup(&hdr->pages); | 1311 | desc->pg_completion_ops->error_cleanup(&desc->pg_list); |
1312 | put_lseg(desc->pg_lseg); | 1312 | put_lseg(desc->pg_lseg); |
1313 | desc->pg_lseg = NULL; | 1313 | desc->pg_lseg = NULL; |
1314 | return -ENOMEM; | 1314 | return -ENOMEM; |
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index fec214bfa702..3636191c3996 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c | |||
@@ -1164,7 +1164,7 @@ static int nfs_generic_pg_writepages(struct nfs_pageio_descriptor *desc) | |||
1164 | 1164 | ||
1165 | whdr = nfs_writehdr_alloc(); | 1165 | whdr = nfs_writehdr_alloc(); |
1166 | if (!whdr) { | 1166 | if (!whdr) { |
1167 | desc->pg_completion_ops->error_cleanup(&hdr->pages); | 1167 | desc->pg_completion_ops->error_cleanup(&desc->pg_list); |
1168 | return -ENOMEM; | 1168 | return -ENOMEM; |
1169 | } | 1169 | } |
1170 | hdr = &whdr->header; | 1170 | hdr = &whdr->header; |