Commit 6c9007f
fs/locks: F_UNLCK extension for F_OFD_GETLK
Currently F_UNLCK with F_OFD_GETLK returns -EINVAL. This patch changes
it such that specifying F_UNLCK returns information only about OFD locks
that are owned by the given file description.
Cc: Jeff Layton <jlayton@kernel.org>
Cc: Chuck Lever <chuck.lever@oracle.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Christian Brauner <brauner@kernel.org>
Cc: linux-fsdevel@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: Shuah Khan <shuah@kernel.org>
Cc: linux-kselftest@vger.kernel.org
Cc: linux-api@vger.kernel.org
Signed-off-by: Stas Sergeev <stsp2@yandex.ru>
Signed-off-by: Jeff Layton <jlayton@kernel.org>1 parent 1ef6663 commit 6c9007f
1 file changed
Lines changed: 20 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
868 | 868 | | |
869 | 869 | | |
870 | 870 | | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
871 | 886 | | |
872 | 887 | | |
873 | 888 | | |
| |||
901 | 916 | | |
902 | 917 | | |
903 | 918 | | |
904 | | - | |
| 919 | + | |
905 | 920 | | |
906 | 921 | | |
907 | 922 | | |
| |||
2207 | 2222 | | |
2208 | 2223 | | |
2209 | 2224 | | |
2210 | | - | |
| 2225 | + | |
| 2226 | + | |
2211 | 2227 | | |
2212 | 2228 | | |
2213 | 2229 | | |
| |||
2414 | 2430 | | |
2415 | 2431 | | |
2416 | 2432 | | |
2417 | | - | |
| 2433 | + | |
| 2434 | + | |
2418 | 2435 | | |
2419 | 2436 | | |
2420 | 2437 | | |
| |||
0 commit comments