Commit d0eab9f
filelock: lift the ban on directory leases in generic_setlease
With the addition of the try_break_lease calls in directory changing
operations, allow generic_setlease to hand them out. Write leases on
directories are never allowed however, so continue to reject them.
For now, there is no API for requesting delegations from userland, so
ensure that userland is prevented from acquiring a lease on a directory.
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20251111-dir-deleg-ro-v6-13-52f3feebb2f2@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>1 parent 92bf535 commit d0eab9f
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1935 | 1935 | | |
1936 | 1936 | | |
1937 | 1937 | | |
1938 | | - | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
1939 | 1941 | | |
1940 | 1942 | | |
1941 | 1943 | | |
1942 | 1944 | | |
1943 | 1945 | | |
1944 | | - | |
1945 | 1946 | | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
1946 | 1951 | | |
1947 | 1952 | | |
1948 | 1953 | | |
| |||
2071 | 2076 | | |
2072 | 2077 | | |
2073 | 2078 | | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
2074 | 2082 | | |
2075 | 2083 | | |
2076 | 2084 | | |
| |||
0 commit comments