locks: pass the cmd value to fcntl_getlk/getlk64
authorJeff Layton <jlayton@redhat.com>
Mon, 3 Feb 2014 17:13:09 +0000 (12:13 -0500)
committerDanny Wood <danwood76@gmail.com>
Tue, 2 Feb 2021 12:54:09 +0000 (12:54 +0000)
commit374b267b87b3519749d6a460909fad3098b8d0cc
tree1efa5d0ebce5558aaacb6d64c0501d7b34caac54
parent526625732179fa722dd55ae9165bb9855cf8e2a5
locks: pass the cmd value to fcntl_getlk/getlk64

Once we introduce file private locks, we'll need to know what cmd value
was used, as that affects the ownership and whether a conflict would
arise.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Change-Id: Iaeb8233ae25bde5ef0049118ff94e4a9e0f02214
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
fs/fcntl.c
fs/locks.c
include/linux/fs.h