Commit 6a8e8a44 authored by Linus Torvalds's avatar Linus Torvalds Committed by Trond Myklebust

Use F_SETLK instead of F_SETLK64 in nfs locking code.

The code doesn't actually _care_ about 32/64-bit issues,
only about F_SETLK vs F_SETLKW, and the F_SETLK64 doesn't
exist except as a compatibility thing on 64-bit architectures
(since the regular one already _is_ 64-bit, of course).
parent 0646a4e4
...@@ -2510,7 +2510,7 @@ static int _nfs4_do_setlk(struct nfs4_state *state, int cmd, struct file_lock *r ...@@ -2510,7 +2510,7 @@ static int _nfs4_do_setlk(struct nfs4_state *state, int cmd, struct file_lock *r
int nfs4_lock_reclaim(struct nfs4_state *state, struct file_lock *request) int nfs4_lock_reclaim(struct nfs4_state *state, struct file_lock *request)
{ {
return _nfs4_do_setlk(state, F_SETLK64, request, 1); return _nfs4_do_setlk(state, F_SETLK, request, 1);
} }
static int _nfs4_proc_setlk(struct nfs4_state *state, int cmd, struct file_lock *request) static int _nfs4_proc_setlk(struct nfs4_state *state, int cmd, struct file_lock *request)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment