Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308569
b: refs/heads/master
c: 9146ab5
h: refs/heads/master
i:
  308567: a879ae8
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed May 1, 2012
1 parent bc55146 commit d585ee9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4f97615d19c370d1d907ef37f8bcd9c3672851ca
refs/heads/master: 9146ab5055152bbacb5690c384df2fd610fb3c68
13 changes: 4 additions & 9 deletions trunk/fs/nfs/read.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,6 @@ static int nfs_pagein_multi(struct nfs_pageio_descriptor *desc,
struct nfs_read_data *data;
size_t rsize = desc->pg_bsize, nbytes;
unsigned int offset;
int requests = 0;
int ret = 0;

nfs_list_remove_request(req);
nfs_list_add_request(req, &hdr->pages);
Expand All @@ -358,12 +356,11 @@ static int nfs_pagein_multi(struct nfs_pageio_descriptor *desc,
data->pages.pagevec[0] = page;
nfs_read_rpcsetup(data, len, offset);
list_add(&data->list, &hdr->rpc_list);
requests++;
nbytes -= len;
offset += len;
} while(nbytes != 0);
} while (nbytes != 0);
desc->pg_rpc_callops = &nfs_read_common_ops;
return ret;
return 0;
out_bad:
while (!list_empty(&hdr->rpc_list)) {
data = list_first_entry(&hdr->rpc_list, struct nfs_read_data, list);
Expand All @@ -387,8 +384,7 @@ static int nfs_pagein_one(struct nfs_pageio_descriptor *desc,
desc->pg_count));
if (!data) {
desc->pg_completion_ops->error_cleanup(head);
ret = -ENOMEM;
goto out;
return -ENOMEM;
}

pages = data->pages.pagevec;
Expand All @@ -402,8 +398,7 @@ static int nfs_pagein_one(struct nfs_pageio_descriptor *desc,
nfs_read_rpcsetup(data, desc->pg_count, 0);
list_add(&data->list, &hdr->rpc_list);
desc->pg_rpc_callops = &nfs_read_common_ops;
out:
return ret;
return 0;
}

int nfs_generic_pagein(struct nfs_pageio_descriptor *desc,
Expand Down

0 comments on commit d585ee9

Please sign in to comment.