]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ufs: add setlease file operation
authorJeff Layton <jlayton@kernel.org>
Thu, 8 Jan 2026 17:13:16 +0000 (12:13 -0500)
committerChristian Brauner <brauner@kernel.org>
Mon, 12 Jan 2026 09:55:48 +0000 (10:55 +0100)
commit545b4144d804604126c369dd5bd66ff1e668c7d9
treec9535c6ac99a9b1b4620a95560695da624c84c3d
parentdbe8d57d148327a39dc4921aa1d3434ea259945e
ufs: add setlease file operation

Add the setlease file_operation pointing to generic_setlease to the ufs
file_operations structures. A future patch will change the default
behavior to reject lease attempts with -EINVAL when there is no
setlease file operation defined. Add generic_setlease to retain the
ability to set leases on this filesystem.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20260108-setlease-6-20-v1-21-ea4dec9b67fa@kernel.org
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/ufs/dir.c
fs/ufs/file.c