patch-2.3.99-pre4 linux/fs/lockd/svcsubs.c
Next file: linux/fs/lockd/xdr.c
Previous file: linux/fs/lockd/svcproc.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sun Apr 2 15:31:32 2000
- Orig file:
v2.3.99-pre3/linux/fs/lockd/svcsubs.c
- Orig date:
Fri Mar 10 16:40:47 2000
diff -u --recursive --new-file v2.3.99-pre3/linux/fs/lockd/svcsubs.c linux/fs/lockd/svcsubs.c
@@ -34,7 +34,7 @@
{
unsigned int tmp=0;
int i;
- for (i=0; i<NFS_FHSIZE;i++)
+ for (i=0; i<NFS2_FHSIZE;i++)
tmp += f->data[i];
return tmp & (FILE_NRHASH - 1);
}
@@ -175,7 +175,7 @@
lock.fl_type = F_UNLCK;
lock.fl_start = 0;
- lock.fl_end = NLM_OFFSET_MAX;
+ lock.fl_end = OFFSET_MAX;
if (posix_lock_file(&file->f_file, &lock, 0) < 0) {
printk("lockd: unlock failure in %s:%d\n",
__FILE__, __LINE__);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)