patch-2.4.0-test9 linux/fs/lockd/xdr.c
Next file: linux/fs/lockd/xdr4.c
Previous file: linux/fs/lockd/svcshare.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Thu Sep 21 13:38:58 2000
- Orig file:
v2.4.0-test8/linux/fs/lockd/xdr.c
- Orig date:
Wed Jul 5 22:15:27 2000
diff -u --recursive --new-file v2.4.0-test8/linux/fs/lockd/xdr.c linux/fs/lockd/xdr.c
@@ -129,7 +129,7 @@
|| !(p = nlm_decode_oh(p, &lock->oh)))
return NULL;
- memset(fl, 0, sizeof(*fl));
+ locks_init_lock(fl);
fl->fl_owner = current->files;
fl->fl_pid = ntohl(*p++);
fl->fl_flags = FL_POSIX;
@@ -314,6 +314,7 @@
int len;
memset(lock, 0, sizeof(*lock));
+ locks_init_lock(&lock->fl);
lock->fl.fl_pid = ~(u32) 0;
if (!(p = nlm_decode_cookie(p, &argp->cookie))
@@ -430,6 +431,7 @@
s32 start, len, end;
memset(&resp->lock, 0, sizeof(resp->lock));
+ locks_init_lock(fl);
excl = ntohl(*p++);
fl->fl_pid = ntohl(*p++);
if (!(p = nlm_decode_oh(p, &resp->lock.oh)))
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)