Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp730809pxf; Thu, 25 Mar 2021 12:41:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+giVZ6RDrRcNEZP3spgZaj4Qk4faOYvQmh4q7Si3nAg8ywh1JastDw7YhTy7uaEUs6lSd X-Received: by 2002:a05:6402:22f6:: with SMTP id dn22mr10776221edb.214.1616701289261; Thu, 25 Mar 2021 12:41:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616701289; cv=none; d=google.com; s=arc-20160816; b=qcAXPxEsFriSfjz8O0RpFZPHX7TKXYtWWIY9wgdJxmbv5RJAOV3U/tSZWGmS8V6cLF 8kCWBJJpQMhTsB8+acZpGpXl7npRXn+uFYA7mvcnZLj2/UR0Wp2u9VDq9pzvJXnmmPb/ 1F4KHSx2sJ4QJnGUDtHsLTFsjyIsUX+4pneEb53zZ/3q4Zi3O5TI32fBeTQQlijAMhKH x7NUw9NKevg3mYc99RlqN1Se/2BDFkz3oBqzdcZz68fDA04YtVr/3HMOoqUedRYID86b 8H0e91H+zo5q/a36B+lvVsiRDU0L07VhCYOBWWNDAnSaz+aW2dR3Ld811qnk7GML1Zec oMgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=R0YdgWghM/7oFfDojn7dnaGdxOcNGzucqNhWxq5GgOE=; b=d1v5GXFSFZrVPAJhpJ1B2Fbzeml0f44AJdkjlTMx8gbp0/9E4DpWalvkkI+qOnZaVG dfd/WGq7wiXspsdi642FT4V/Zr064DvTjDxsbtVDDOz5RkLTD0VAVc2733bzG2wszQDK yE0DQsuuMhCs4hIwg8ehHkqLnPmV6PgBi0727UF3y1cNyHvdR0AkEQW5YRslSNxEAiwv UWn6z740PrfzHiGLUqj4hFT56XFDwzZyVme81Haj4Ghc3phIvQGImJ+1R4bognlGA6gO Dqh127HjNZEa4RG0Z/N+NwMkFdYTuk4afWAA9Rp9Fc5SJ/rCTAxIpGbvPbhrTLJWgxfu ldDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cwZXcnm+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f11si4987223ejw.277.2021.03.25.12.41.06; Thu, 25 Mar 2021 12:41:29 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cwZXcnm+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230307AbhCYTiN (ORCPT + 99 others); Thu, 25 Mar 2021 15:38:13 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:46514 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230153AbhCYTiB (ORCPT ); Thu, 25 Mar 2021 15:38:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616701080; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=R0YdgWghM/7oFfDojn7dnaGdxOcNGzucqNhWxq5GgOE=; b=cwZXcnm+7PgpBpI2hnCNxaqdJZPErOb49Rzm2K5iy4nq3YGDLIYsGdkKddogqJkm7f5+4N LFy85qzWJIEV7EI7EujivfK+evWfL1+EK1PKRJX1BZGTwsb0sR2zhX6doqVocvznOTGeW2 /fqcVCMNiftJSzmGZ/tS5zTwMaT88kw= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-404-_FVVKDU-OgSTchOk5GUr8A-1; Thu, 25 Mar 2021 15:37:58 -0400 X-MC-Unique: _FVVKDU-OgSTchOk5GUr8A-1 Received: by mail-ed1-f69.google.com with SMTP id f9so3197928edd.13 for ; Thu, 25 Mar 2021 12:37:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=R0YdgWghM/7oFfDojn7dnaGdxOcNGzucqNhWxq5GgOE=; b=i5DJaHIKX/EYHStCwmAOtht5KzU3Py3wtMTUiV8fW81/+cI5oT2brL8Apl/uWNsTSA UJzsVOZwobKjyc0dgHxnIi6OgxPShFnysZVGtTwtMPzOj0euBRd7H9QWkqMFW9IcCKtS qvBgyi9sNfd+l8Jo6vRJkI21xum8wE/67G8335aMIs850QkIquKw/cMJ5unjpIH+BgGM ZQpA7kSUFCGkuX7PSxGRtShVEY3NO3aM93CMzyUuAOFCvVydAdhwzE+w1QwNTHeiC10p cB6LiOTjTf3rPe9WgBWeNpLDnl83sAi1vce8R/CzaUoY7IZYfnOiNQDuSAgAtF4x1e/y i7BQ== X-Gm-Message-State: AOAM531Ja+aKDTv37RXw99rOIhoudsXnZJqgOc6fFylDHQ1M2Z0Yaq2b CvdcsobQRuM+m1awyYt+l18XcGUCmJrbkTB05iK6aJugLH0wGw7orDVu0s/3fNFmr6AsK6qDRDt 2/jsunnsNG442QzyRWcnY85vf X-Received: by 2002:aa7:db4f:: with SMTP id n15mr10825786edt.12.1616701077442; Thu, 25 Mar 2021 12:37:57 -0700 (PDT) X-Received: by 2002:aa7:db4f:: with SMTP id n15mr10825766edt.12.1616701077285; Thu, 25 Mar 2021 12:37:57 -0700 (PDT) Received: from miu.piliscsaba.redhat.com (catv-86-101-169-67.catv.broadband.hu. [86.101.169.67]) by smtp.gmail.com with ESMTPSA id si7sm2881996ejb.84.2021.03.25.12.37.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Mar 2021 12:37:56 -0700 (PDT) From: Miklos Szeredi To: linux-fsdevel@vger.kernel.org Cc: Al Viro , "Darrick J . Wong" , Amir Goldstein , David Sterba , Christian Brauner , Eric Biggers , linux-kernel@vger.kernel.org Subject: [PATCH v3 00/18] new kAPI for FS_IOC_[GS]ETFLAGS/FS_IOC_FS[GS]ETXATTR Date: Thu, 25 Mar 2021 20:37:37 +0100 Message-Id: <20210325193755.294925-1-mszeredi@redhat.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for the feedback, I think all comments are addressed. Seems "fileattr" has won a small majority of bikesheders' preference, so switching over to that. Changes since v2: - renaming, most notably miscattr -> fileattr - use memset instead of structure initialization - drop gratuitous use of file_dentry() - kerneldoc, comments, spelling improvements - xfs: enable getting/setting FS_PROJINHERIT_FL and other tweaks - btrfs: patch logistics Changes since v1: - rebased on 5.12-rc1 (mnt_userns churn) - fixed LSM hook on overlayfs Git tree is available here: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git#fileattr_v3 Miklos Szeredi (18): 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 Documentation/filesystems/locking.rst | 5 + 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/gfs2/file.c | 57 ++--- 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 | 331 ++++++++++++++++++++++++++ fs/jfs/file.c | 6 +- fs/jfs/ioctl.c | 105 +++----- 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/inode.c | 77 ++++++ fs/overlayfs/overlayfs.h | 3 + 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 | 74 +++--- fs/ubifs/ubifs.h | 3 + fs/xfs/libxfs/xfs_fs.h | 4 - fs/xfs/xfs_ioctl.c | 252 +++++--------------- 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 +- 64 files changed, 1136 insertions(+), 1490 deletions(-) create mode 100644 include/linux/fileattr.h -- 2.30.2