Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4014783pxy; Mon, 26 Apr 2021 15:43:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNVzO73OZErRDiZ0N16kDFKY8M+k491VXdKAV6lD9nfzx8ky74oOZ/DLGO8wdxza/JwNAu X-Received: by 2002:a17:90a:7f03:: with SMTP id k3mr1466219pjl.213.1619476991558; Mon, 26 Apr 2021 15:43:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619476991; cv=none; d=google.com; s=arc-20160816; b=VKcdbh/MDmIpLnQ95xKrsAAg9S+FQ/Ejp+SuDyzo9yghdkoQp46htiXUu9HNPyHqNG RPftv4voOECSSLcxwZ+W5i99mGHVJLk9NkqOWGE9qnzvD4hyIa+8rNipXk89Rykzwacj GmrryC+ELmHZ1rX3JMvob30Pv842rA8Wv5RxSWu4i1zjzLtV5cjAa5c6gDSMm2mp8/s1 soMmZR4Yww9kTv5zHHaqgukxtV9ra9eCZDWEHMaQMQnYENNY3wXbhhCFKnJW8E61bLeE Qrqtxw6WNZvdYNAdowGRWhVsKpDcTaiDB2ML2Wt4phyyHJfPFXW/ZGtizTmBEKgBkLoL 6hTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:cc:to:from:date; bh=njbXVj24+Fxis7B/6nPzTbeKwg2WkNk1tC3B+M1hNyQ=; b=waEYPXXTwCjhdRZnXPX0x/zpg7BtWSvQkMJ5ybSPJ3bM/VmxjhX9rCTLDtVO2ZY8k+ XKq9Ern66n+nyZvfGfS9u8Q+D0NPBg5EieM4bwNIieuspsTLhTwWWeTRnJ2N4VzgSh3R oLV5+rJIuNjTY3SaFCNgQJx5IdRH4Nzheb6V7dYRqkqroYCuJP+iJJuo5EbIr5QM42xn U315pYuf7WJ7DszH8IRCQG/QRfkWdWzsLSrbNB2nrnTH7jpnZViv0CufH1u3VFBWLLEQ 1osdCrK+DZ26Lw9yEksxsKAR/mXox8A7tEZi1jYjRamHLSJjERNr+AchDLi7x84X5nZl EVFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c6si19427324pgl.78.2021.04.26.15.42.58; Mon, 26 Apr 2021 15:43:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234458AbhDZWnD (ORCPT + 99 others); Mon, 26 Apr 2021 18:43:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232116AbhDZWnD (ORCPT ); Mon, 26 Apr 2021 18:43:03 -0400 Received: from zeniv-ca.linux.org.uk (zeniv-ca.linux.org.uk [IPv6:2607:5300:60:148a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 284CCC061574; Mon, 26 Apr 2021 15:42:21 -0700 (PDT) Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94 #2 (Red Hat Linux)) id 1lb9vn-008WKe-OT; Mon, 26 Apr 2021 22:42:19 +0000 Date: Mon, 26 Apr 2021 22:42:19 +0000 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Miklos Szeredi Subject: [git pull] fileattr series from Miklos Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Splits the handling of FS_IOC_[GS]ETFLAGS from ->ioctl() into a separate method. The interface is reasonably uniform across the filesystems that support it and gives nice boilerplate removal. The branch is straight from Miklos' tree (it's #fileattr_v6 there), sat merged into vfs.git #for-next for a while. Not sure what's the normal way to do pull requests in situations like that - do you prefer a reference to my tree (as below) or to mszeredi/vfs.git? The following changes since commit e49d033bddf5b565044e2abe4241353959bc9120: Linux 5.12-rc6 (2021-04-04 14:15:36 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git miklos.fileattr for you to fetch changes up to c4fe8aef2f07c8a41169bcb2c925f6a3a6818ca3: ovl: remove unneeded ioctls (2021-04-12 15:04:30 +0200) ---------------------------------------------------------------- Miklos Szeredi (23): vfs: add fileattr ops ecryptfs: stack fileattr ops ovl: stack fileattr ops btrfs: convert to fileattr ext2: convert to fileattr ext4: convert to fileattr f2fs: convert to fileattr gfs2: convert to fileattr orangefs: convert to fileattr xfs: convert to fileattr efivars: convert to fileattr hfsplus: convert to fileattr jfs: convert to fileattr nilfs2: convert to fileattr ocfs2: convert to fileattr reiserfs: convert to fileattr ubifs: convert to fileattr vfs: remove unused ioctl helpers fuse: move ioctl to separate source file fuse: unsigned open flags fuse: add internal open/release helpers fuse: convert to fileattr ovl: remove unneeded ioctls Documentation/filesystems/locking.rst | 11 +- Documentation/filesystems/vfs.rst | 15 ++ fs/btrfs/ctree.h | 3 + fs/btrfs/inode.c | 4 + fs/btrfs/ioctl.c | 226 +++------------- fs/ecryptfs/inode.c | 22 ++ fs/efivarfs/file.c | 77 ------ fs/efivarfs/inode.c | 44 +++ fs/ext2/ext2.h | 7 +- fs/ext2/file.c | 2 + fs/ext2/ioctl.c | 88 +++--- fs/ext2/namei.c | 2 + fs/ext4/ext4.h | 12 +- fs/ext4/file.c | 2 + fs/ext4/ioctl.c | 208 +++------------ fs/ext4/namei.c | 2 + fs/f2fs/f2fs.h | 3 + fs/f2fs/file.c | 216 +++------------ fs/f2fs/namei.c | 2 + fs/fuse/Makefile | 2 +- fs/fuse/dir.c | 6 +- fs/fuse/file.c | 435 +++--------------------------- fs/fuse/fuse_i.h | 40 ++- fs/fuse/ioctl.c | 490 ++++++++++++++++++++++++++++++++++ fs/gfs2/file.c | 63 ++--- fs/gfs2/inode.c | 4 + fs/gfs2/inode.h | 3 + fs/hfsplus/dir.c | 2 + fs/hfsplus/hfsplus_fs.h | 14 +- fs/hfsplus/inode.c | 54 ++++ fs/hfsplus/ioctl.c | 84 ------ fs/inode.c | 87 ------ fs/ioctl.c | 325 ++++++++++++++++++++++ fs/jfs/file.c | 6 +- fs/jfs/ioctl.c | 111 +++----- fs/jfs/jfs_dinode.h | 7 - fs/jfs/jfs_inode.h | 4 +- fs/jfs/namei.c | 6 +- fs/nilfs2/file.c | 2 + fs/nilfs2/ioctl.c | 61 ++--- fs/nilfs2/namei.c | 2 + fs/nilfs2/nilfs.h | 3 + fs/ocfs2/file.c | 2 + fs/ocfs2/ioctl.c | 59 ++-- fs/ocfs2/ioctl.h | 3 + fs/ocfs2/namei.c | 3 + fs/ocfs2/ocfs2_ioctl.h | 8 - fs/orangefs/file.c | 79 ------ fs/orangefs/inode.c | 50 ++++ fs/overlayfs/dir.c | 2 + fs/overlayfs/file.c | 110 -------- fs/overlayfs/inode.c | 77 ++++++ fs/overlayfs/overlayfs.h | 5 +- fs/overlayfs/readdir.c | 4 - fs/reiserfs/file.c | 2 + fs/reiserfs/ioctl.c | 121 ++++----- fs/reiserfs/namei.c | 2 + fs/reiserfs/reiserfs.h | 7 +- fs/reiserfs/super.c | 2 +- fs/ubifs/dir.c | 2 + fs/ubifs/file.c | 2 + fs/ubifs/ioctl.c | 78 +++--- fs/ubifs/ubifs.h | 3 + fs/xfs/libxfs/xfs_fs.h | 4 - fs/xfs/xfs_ioctl.c | 258 +++++------------- fs/xfs/xfs_ioctl.h | 11 + fs/xfs/xfs_ioctl32.c | 2 - fs/xfs/xfs_ioctl32.h | 2 - fs/xfs/xfs_iops.c | 7 + include/linux/fileattr.h | 59 ++++ include/linux/fs.h | 16 +- 71 files changed, 1727 insertions(+), 2010 deletions(-) create mode 100644 fs/fuse/ioctl.c create mode 100644 include/linux/fileattr.h