Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359737
b: refs/heads/master
c: 21cd125
h: refs/heads/master
i:
  359735: af8d1e7
v: v3
  • Loading branch information
Stanislav Kinsbursky authored and J. Bruce Fields committed Feb 15, 2013
1 parent ef3c18a commit ed9a0ba
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 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: 2d4383383b0b04ca380b67aa2d7397d0b399dcbf
refs/heads/master: 21cd1254d3402a72927ed744e8ac1a7cf532f1ea
2 changes: 1 addition & 1 deletion trunk/fs/nfs/dns_resolve.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ static int nfs_dns_upcall(struct cache_detail *cd,

ret = nfs_cache_upcall(cd, key->hostname);
if (ret)
ret = sunrpc_cache_pipe_upcall(cd, ch, cd->cache_request);
ret = sunrpc_cache_pipe_upcall(cd, ch);
return ret;
}

Expand Down
6 changes: 1 addition & 5 deletions trunk/include/linux/sunrpc/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,7 @@ sunrpc_cache_update(struct cache_detail *detail,
struct cache_head *new, struct cache_head *old, int hash);

extern int
sunrpc_cache_pipe_upcall(struct cache_detail *detail, struct cache_head *h,
void (*cache_request)(struct cache_detail *,
struct cache_head *,
char **,
int *));
sunrpc_cache_pipe_upcall(struct cache_detail *detail, struct cache_head *h);


extern void cache_clean_deferred(void *owner);
Expand Down
10 changes: 3 additions & 7 deletions trunk/net/sunrpc/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ static int cache_make_upcall(struct cache_detail *cd, struct cache_head *h)
{
if (cd->cache_upcall)
return cd->cache_upcall(cd, h);
return sunrpc_cache_pipe_upcall(cd, h, cd->cache_request);
return sunrpc_cache_pipe_upcall(cd, h);
}

static inline int cache_is_valid(struct cache_detail *detail, struct cache_head *h)
Expand Down Expand Up @@ -1140,11 +1140,7 @@ static bool cache_listeners_exist(struct cache_detail *detail)
*
* Each request is at most one page long.
*/
int sunrpc_cache_pipe_upcall(struct cache_detail *detail, struct cache_head *h,
void (*cache_request)(struct cache_detail *,
struct cache_head *,
char **,
int *))
int sunrpc_cache_pipe_upcall(struct cache_detail *detail, struct cache_head *h)
{

char *buf;
Expand Down Expand Up @@ -1172,7 +1168,7 @@ int sunrpc_cache_pipe_upcall(struct cache_detail *detail, struct cache_head *h,

bp = buf; len = PAGE_SIZE;

cache_request(detail, h, &bp, &len);
detail->cache_request(detail, h, &bp, &len);

if (len < 0) {
kfree(buf);
Expand Down

0 comments on commit ed9a0ba

Please sign in to comment.