Re: [PATCH 03/24] btrfs: add setlease file operation

From: David Sterba
Date: Thu Jan 08 2026 - 16:27:54 EST


On Thu, Jan 08, 2026 at 12:12:58PM -0500, Jeff Layton wrote:
> Add the setlease file_operation to btrfs_file_operations and
> btrfs_dir_file_operations, pointing to generic_setlease. 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@xxxxxxxxxx>

Acked-by: David Sterba <dsterba@xxxxxxxx>