]> git.ipfire.org Git - thirdparty/linux.git/commit
ceph: don't allow delegations to be set on directories
authorJeff Layton <jlayton@kernel.org>
Wed, 7 Jan 2026 14:20:13 +0000 (09:20 -0500)
committerChristian Brauner <brauner@kernel.org>
Mon, 12 Jan 2026 09:54:47 +0000 (10:54 +0100)
commitffb321045b0f1cd8bcea215269fbaa17c12da038
treed2783a4f399d9a09f501f64966f8ac78871a2014
parentce946c4fb98c95519ee39ab7d4b117ff15f09efa
ceph: don't allow delegations to be set on directories

With the advent of directory leases, it's necessary to set the
->setlease() handler in directory file_operations to properly deny them.

Fixes: e6d28ebc17eb ("filelock: push the S_ISREG check down to ->setlease handlers")
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20260107-setlease-6-19-v1-5-85f034abcc57@kernel.org
Reviewed-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/ceph/dir.c