From 56c73153489ae962296278dc13d594920a442756 Mon Sep 17 00:00:00 2001 From: Kris Van Hees Date: Fri, 22 Nov 2002 21:01:29 +0000 Subject: [PATCH] downmap F_*LK64 to F_*LK if they're different. we have no large files for now. (cherry picked from commit 27005896103e250d045b005edc5a17cbec09131b) --- src/afs/LINUX/osi_vnodeops.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index e58af0ac7..ded23d890 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -540,6 +540,16 @@ static int afs_linux_lock(struct file *fp, int cmd, struct file_lock *flp) flock.l_start = flp->fl_start; flock.l_len = flp->fl_end - flp->fl_start; + /* Safe because there are no large files, yet */ +#if F_GETLK != F_GETLK64 + if (cmd = F_GETLK64) + cmd = F_GETLK; + else if (cmd = F_SETLK64) + cmd = F_SETLK; + else if (cmd = F_SETLKW64) + cmd = F_SETLKW; +#endif /* F_GETLK != F_GETLK64 */ + AFS_GLOCK(); code = afs_lockctl(vcp, &flock, cmd, credp); AFS_GUNLOCK(); -- 2.39.5