X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fsunrpc%2Fsysctl.c;h=e69a7fbb489cd1d9f43960c78c55ce9b5cf35167;hb=08559aee03be26f1300e0b97f98cf5975095ec7a;hp=1b9616a12e245405427606c494941327664e52c6;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/net/sunrpc/sysctl.c b/net/sunrpc/sysctl.c index 1b9616a12..e69a7fbb4 100644 --- a/net/sunrpc/sysctl.c +++ b/net/sunrpc/sysctl.c @@ -58,14 +58,14 @@ rpc_unregister_sysctl(void) static int proc_dodebug(ctl_table *table, int write, struct file *file, - void __user *buffer, size_t *lenp, loff_t *ppos) + void __user *buffer, size_t *lenp) { char tmpbuf[20], c, *s; char __user *p; unsigned int value; size_t left, len; - if ((*ppos && !write) || !*lenp) { + if ((file->f_pos && !write) || !*lenp) { *lenp = 0; return 0; } @@ -115,7 +115,7 @@ proc_dodebug(ctl_table *table, int write, struct file *file, done: *lenp -= left; - *ppos += *lenp; + file->f_pos += *lenp; return 0; }