Skip to content

Commit 12a16d1

Browse files
bcodding-rhtrondmypd
authored andcommitted
NFS4: remove a redundant lock range check
flock64_to_posix_lock() is already doing this check Signed-off-by: Benjamin Coddington <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
1 parent 675e508 commit 12a16d1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/nfs/nfs4proc.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6447,9 +6447,6 @@ nfs4_proc_lock(struct file *filp, int cmd, struct file_lock *request)
64476447
ctx = nfs_file_open_context(filp);
64486448
state = ctx->state;
64496449

6450-
if (request->fl_start < 0 || request->fl_end < 0)
6451-
return -EINVAL;
6452-
64536450
if (IS_GETLK(cmd)) {
64546451
if (state != NULL)
64556452
return nfs4_proc_getlk(state, F_GETLK, request);

0 commit comments

Comments
 (0)