From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A8DC5D1D483 for ; Thu, 8 Jan 2026 18:19:04 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4dnCpZ70bFz2xcB; Fri, 09 Jan 2026 05:19:02 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=210.171.160.6 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1767896342; cv=none; b=bA2voX/9XxZMttJgS3jBxd5nEwvvm9qQHPrF03zJOVsP6fKZZSVczbdlFiIoWfThupSF0o4uUkQ9fV90EHeszMmTymEBet/oAszyM+m1784M41DP6r6uiDlI0zWqRbDoAb6oWlkV1dD1bfUUVojOQh9fjPP/C5CbmrvCyy3cuyHxwNIw6PlYt9fuDx1AaA1+ZCQ0VN4i4F/twsodQ9NgXmbcklC/J80wWvzyTACcHFe32YKtVKzP0T2q7k32qAzV6hCFA+9QlinH4KkRuU12oMqN+NsnzvlbMtQKeUR5ameiuAmX2LwINEFzO1rxtYLI9E4B0DkviFutOXylZnLA9w== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1767896342; c=relaxed/relaxed; bh=VE+eLbPxS+2/NxdS4iC5ykEp/h4Ri6SH4uWUI0CKCww=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Upj3IQ3cMONviIkbwKlXq4vTZ82yc37HZOTMVoC9n1ZgqOrnBhMrBBTZuWz9hrGDShzm0S/a0rj3FGFdsdF517AO4hs/e8QQXfGDUh3wWTu0CcVdDqHoNcHl8+/WqdkqjlLDV2c4/6WOxsfjTywBuercDl8LaIAXYO6CWPORnjyQqaaWCYUvvpjba4Ud+LDxS2pcYqYhS39i1Q0wlopQZPOp+D7kaQNyxeTjIlb2lgGQ9V4HzW/Fc5cQu7FRw2GrJVbOhVVeGFS5UNT4ezRawUuOdqw0phKTKRarhpqGIR68iTpRDYFSDwa9dciMX/qt+gzywrjTlFGtCicNMCV1Vg== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=mail.parknet.co.jp; dkim=pass (2048-bit key; unprotected) header.d=parknet.co.jp header.i=@parknet.co.jp header.a=rsa-sha256 header.s=20250114 header.b=gca1nAhL; dkim=pass header.d=parknet.co.jp header.i=@parknet.co.jp header.a=ed25519-sha256 header.s=20250114-ed25519 header.b=dpcKqiHv; dkim-atps=neutral; spf=pass (client-ip=210.171.160.6; helo=mail.parknet.co.jp; envelope-from=hirofumi@parknet.co.jp; receiver=lists.ozlabs.org) smtp.mailfrom=parknet.co.jp Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=mail.parknet.co.jp Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=parknet.co.jp header.i=@parknet.co.jp header.a=rsa-sha256 header.s=20250114 header.b=gca1nAhL; dkim=pass header.d=parknet.co.jp header.i=@parknet.co.jp header.a=ed25519-sha256 header.s=20250114-ed25519 header.b=dpcKqiHv; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=parknet.co.jp (client-ip=210.171.160.6; helo=mail.parknet.co.jp; envelope-from=hirofumi@parknet.co.jp; receiver=lists.ozlabs.org) X-Greylist: delayed 383 seconds by postgrey-1.37 at boromir; Fri, 09 Jan 2026 05:19:00 AEDT Received: from mail.parknet.co.jp (mail.parknet.co.jp [210.171.160.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4dnCpX3Smcz2xZK for ; Fri, 09 Jan 2026 05:19:00 +1100 (AEDT) Received: from ibmpc.myhome.or.jp (server.parknet.ne.jp [210.171.168.39]) by mail.parknet.co.jp (Postfix) with ESMTPSA id 4677D26F765D; Fri, 9 Jan 2026 03:12:33 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=parknet.co.jp; s=20250114; t=1767895953; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VE+eLbPxS+2/NxdS4iC5ykEp/h4Ri6SH4uWUI0CKCww=; b=gca1nAhL0iYeKhrMxVW/YkNVQGsmR2FtA0K2e0pt9zd3L8VZwxpcEfUTVG6wgn+2tFPTSO HeW+ni5Q59lRV2kUjNcId9ow+1k5DhIo1N5oAHHp1l0frRz0p+GdCrJ5yDI66gxE8KEOn7 v8zc7gU5ici9xYmL+L7s3KQ9RND4Zj9v/GNEYNheUomswbwI2MAFPIY0boWLymkQQnV9lD 55Q1xjqtAMVsY4vr4S+L3pqkV4l+GHZ+5Sx/JiLr+J5yUBW4ypUc8Y8oNHBEL1KgKVh31j qSpaEXlZVcdannHzIb1g2WajxumAtmJFSTEQRXXN49o5ilDnu6uppAB9swxKLA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=parknet.co.jp; s=20250114-ed25519; t=1767895953; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VE+eLbPxS+2/NxdS4iC5ykEp/h4Ri6SH4uWUI0CKCww=; b=dpcKqiHv5kPZON+sXPbBLz5lebhV2Omji1CcWNcfUdqkirKgF5cr6kEKLmZbrHERXCyoN2 F8vLjq1Lz09KhaCQ== Received: from devron.myhome.or.jp (foobar@devron.myhome.or.jp [192.168.0.3]) by ibmpc.myhome.or.jp (8.18.1/8.18.1/Debian-7) with ESMTPS id 608ICUsL013625 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 9 Jan 2026 03:12:31 +0900 Received: from devron.myhome.or.jp (foobar@localhost [127.0.0.1]) by devron.myhome.or.jp (8.18.1/8.18.1/Debian-7) with ESMTPS id 608ICTic019851 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 9 Jan 2026 03:12:29 +0900 Received: (from hirofumi@localhost) by devron.myhome.or.jp (8.18.1/8.18.1/Submit) id 608ICKe4019849; Fri, 9 Jan 2026 03:12:20 +0900 From: OGAWA Hirofumi To: Jeff Layton Cc: Luis de Bethencourt , Salah Triki , Nicolas Pitre , Christoph Hellwig , Jan Kara , Anders Larsen , Alexander Viro , Christian Brauner , David Sterba , Chris Mason , Gao Xiang , Chao Yu , Yue Hu , Jeffle Xu , Sandeep Dhavale , Hongbo Li , Chunhai Guo , Jan Kara , "Theodore Ts'o" , Andreas Dilger , Jaegeuk Kim , David Woodhouse , Richard Weinberger , Dave Kleikamp , Ryusuke Konishi , Viacheslav Dubeyko , Konstantin Komarov , Mark Fasheh , Joel Becker , Joseph Qi , Mike Marshall , Martin Brandenburg , Miklos Szeredi , Amir Goldstein , Phillip Lougher , Carlos Maiolino , Hugh Dickins , Baolin Wang , Andrew Morton , Namjae Jeon , Sungjong Seo , Yuezhang Mo , Chuck Lever , Alexander Aring , Andreas Gruenbacher , Jonathan Corbet , "Matthew Wilcox (Oracle)" , Eric Van Hensbergen , Latchesar Ionkov , Dominique Martinet , Christian Schoenebeck , Xiubo Li , Ilya Dryomov , Trond Myklebust , Anna Schumaker , Steve French , Paulo Alcantara , Ronnie Sahlberg , Shyam Prasad N , Tom Talpey , Bharath SM , Hans de Goede , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-erofs@lists.ozlabs.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-mtd@lists.infradead.org, jfs-discussion@lists.sourceforge.net, linux-nilfs@vger.kernel.org, ntfs3@lists.linux.dev, ocfs2-devel@lists.linux.dev, devel@lists.orangefs.org, linux-unionfs@vger.kernel.org, linux-xfs@vger.kernel.org, linux-mm@kvack.org, gfs2@lists.linux.dev, linux-doc@vger.kernel.org, v9fs@lists.linux.dev, ceph-devel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org Subject: Re: [PATCH 09/24] fat: add setlease file operation In-Reply-To: <20260108-setlease-6-20-v1-9-ea4dec9b67fa@kernel.org> References: <20260108-setlease-6-20-v1-0-ea4dec9b67fa@kernel.org> <20260108-setlease-6-20-v1-9-ea4dec9b67fa@kernel.org> Date: Fri, 09 Jan 2026 03:12:20 +0900 Message-ID: <875x9c3rej.fsf@mail.parknet.co.jp> User-Agent: Gnus/5.13 (Gnus v5.13) X-Mailing-List: linux-erofs@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Type: text/plain Jeff Layton writes: > Add the setlease file_operation to fat_file_operations and > fat_dir_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 Looks good. Acked-by: OGAWA Hirofumi > --- > fs/fat/dir.c | 2 ++ > fs/fat/file.c | 2 ++ > 2 files changed, 4 insertions(+) > > diff --git a/fs/fat/dir.c b/fs/fat/dir.c > index 92b091783966af6a9e6f5ead1a382a98dd92bba0..807bc8b1bc145a9f15765920670c6233f7e87e55 100644 > --- a/fs/fat/dir.c > +++ b/fs/fat/dir.c > @@ -16,6 +16,7 @@ > > #include > #include > +#include > #include > #include > #include "fat.h" > @@ -876,6 +877,7 @@ const struct file_operations fat_dir_operations = { > .compat_ioctl = fat_compat_dir_ioctl, > #endif > .fsync = fat_file_fsync, > + .setlease = generic_setlease, > }; > > static int fat_get_short_entry(struct inode *dir, loff_t *pos, > diff --git a/fs/fat/file.c b/fs/fat/file.c > index 4fc49a614fb8fd64e219db60c6d9e7dd100aea1c..d50a6d8bfaae0c75b2dbe838d108135206d0f123 100644 > --- a/fs/fat/file.c > +++ b/fs/fat/file.c > @@ -13,6 +13,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -212,6 +213,7 @@ const struct file_operations fat_file_operations = { > .splice_read = filemap_splice_read, > .splice_write = iter_file_splice_write, > .fallocate = fat_fallocate, > + .setlease = generic_setlease, > }; > > static int fat_cont_expand(struct inode *inode, loff_t size) -- OGAWA Hirofumi