From: Jeff Layton Date: Tue, 19 Mar 2024 16:32:04 +0000 (-0400) Subject: vboxsf: explicitly deny setlease attempts X-Git-Tag: microblaze-v6.13~1462^2 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=1ece2c43b88660ddbdf8ecb772e9c41ed9cda3dd;p=linux-2.6-microblaze.git vboxsf: explicitly deny setlease attempts vboxsf does not break leases on its own, so it can't properly handle the case where the hypervisor changes the data. Don't allow file leases on vboxsf. Signed-off-by: Jeff Layton Link: https://lore.kernel.org/r/20240319-setlease-v1-1-5997d67e04b3@kernel.org Reviewed-by: Hans de Goede Signed-off-by: Hans de Goede --- diff --git a/fs/vboxsf/file.c b/fs/vboxsf/file.c index 2307f8037efc..118dedef8ebe 100644 --- a/fs/vboxsf/file.c +++ b/fs/vboxsf/file.c @@ -218,6 +218,7 @@ const struct file_operations vboxsf_reg_fops = { .release = vboxsf_file_release, .fsync = noop_fsync, .splice_read = filemap_splice_read, + .setlease = simple_nosetlease, }; const struct inode_operations vboxsf_reg_iops = {