Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp739541ybd; Wed, 26 Jun 2019 05:21:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkwykQ3a+8Iz3X9IL7LOIbqX7F2GfUS2TuJQFtr2DVdjpWEg/RyREs/TsbLQ+0J6yYXH2p X-Received: by 2002:a63:1952:: with SMTP id 18mr2808894pgz.334.1561551711694; Wed, 26 Jun 2019 05:21:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561551711; cv=none; d=google.com; s=arc-20160816; b=MTO61PowPqEU6em7+m2MW/owh2/JBohlcVUMM3nGWomkjqJj6B/gyv/e+SVL31/tt1 5YP0Vlo96lGiyr3l1ntq5ZITvTbhrLZh6PwKEzESc5AyphIoH59zxx/0ELUflS7yh76R 1sO8SqULBAAj6b3WjpACx4U9wNMpKkQc6HLDWquDtD8UU3JYBcRXpjlv6+LjIoy/771+ X/+pe90AklUyl5Aprg6CVq11XyNqANgrWRnhAPkmO9TOIeeGUfvxRMEU2tWwIE+9RB3M 0482it6g4ZjJRrGEii2pWTAkoYYG8tjo6my0z2BWAicZNjtkwbkc7AOSy8H/Sa46WP7A RPxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=lJpZ5W/5WxDNjMZm8yNYs4WsNv/o06f5eh03oqGL7gg=; b=Vv+oVJnAh0nNqGynD6OTZyBRH+Q+VV5dahr+AyQM41wiDaOikSaUHS/zT/8Qi8d9vW 10CXDE4KE+vxbQqOILdXM7XRo4+DrTleHDJJB6ulwhp/NcQypy8Dh0hPzppTCxnQFHoE 90K4C5zvIWrCGZ4niFbHNLsUqojReOVnHdrZkNGJJQv5JT42iDsxcwMYfaTOiudyocBV 7Ab35bD1DtS6oEM5Y0vWsU6uBcQIAoO53Ix1Y4z9c4OWHfd5roKX4+2vWw9zqDpIR3oT jzpn7m65yHSCXvP0s8i9ZhtzjmmcbNieSEOXY6Xx+3zXbpnJ3ianj+CxGifWjFKG/FvS r46g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t17si15717967pgu.68.2019.06.26.05.21.35; Wed, 26 Jun 2019 05:21:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727282AbfFZMVQ (ORCPT + 99 others); Wed, 26 Jun 2019 08:21:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59914 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726104AbfFZMVP (ORCPT ); Wed, 26 Jun 2019 08:21:15 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6DBE3308792C; Wed, 26 Jun 2019 12:20:52 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0DAEC5D9C6; Wed, 26 Jun 2019 12:20:49 +0000 (UTC) Received: from zmail21.collab.prod.int.phx2.redhat.com (zmail21.collab.prod.int.phx2.redhat.com [10.5.83.24]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 26F8E1806B0E; Wed, 26 Jun 2019 12:20:43 +0000 (UTC) Date: Wed, 26 Jun 2019 08:20:42 -0400 (EDT) From: Bob Peterson To: "Darrick J. Wong" Cc: matthew garrett , yuchao0@huawei.com, tytso@mit.edu, shaggy@kernel.org, ard biesheuvel , josef@toxicpanda.com, hch@infradead.org, clm@fb.com, adilger kernel , jk@ozlabs.org, jack@suse.com, dsterba@suse.com, jaegeuk@kernel.org, viro@zeniv.linux.org.uk, linux-xfs@vger.kernel.org, jfs-discussion@lists.sourceforge.net, linux-efi@vger.kernel.org, Jan Kara , linux-ext4@vger.kernel.org, reiserfs-devel@vger.kernel.org, linux-kernel@vger.kernel.org, cluster-devel@redhat.com, linux-nilfs@vger.kernel.org, linux-mtd@lists.infradead.org, linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, Christoph Hellwig , ocfs2-devel@oss.oracle.com Message-ID: <868182386.37358699.1561551642881.JavaMail.zimbra@redhat.com> In-Reply-To: <156151633004.2283456.4175543089138173586.stgit@magnolia> References: <156151632209.2283456.3592379873620132456.stgit@magnolia> <156151633004.2283456.4175543089138173586.stgit@magnolia> Subject: Re: [Cluster-devel] [PATCH 1/5] vfs: create a generic checking and prep function for FS_IOC_SETFLAGS MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.3.116.201, 10.4.195.9] Thread-Topic: create a generic checking and prep function for FS_IOC_SETFLAGS Thread-Index: 5u1cuSAsKRaw36dS1F+PjLFgFqc7sA== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Wed, 26 Jun 2019 12:21:15 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- Original Message ----- > From: Darrick J. Wong > > Create a generic function to check incoming FS_IOC_SETFLAGS flag values > and later prepare the inode for updates so that we can standardize the > implementations that follow ext4's flag values. > > Signed-off-by: Darrick J. Wong > Reviewed-by: Jan Kara > Reviewed-by: Christoph Hellwig > Acked-by: David Sterba > --- > fs/btrfs/ioctl.c | 13 +++++-------- > fs/efivarfs/file.c | 26 +++++++++++++++++--------- > fs/ext2/ioctl.c | 16 ++++------------ > fs/ext4/ioctl.c | 13 +++---------- > fs/f2fs/file.c | 7 ++++--- > fs/gfs2/file.c | 42 +++++++++++++++++++++++++++++------------- > fs/hfsplus/ioctl.c | 21 ++++++++++++--------- > fs/inode.c | 24 ++++++++++++++++++++++++ > fs/jfs/ioctl.c | 22 +++++++--------------- > fs/nilfs2/ioctl.c | 9 ++------- > fs/ocfs2/ioctl.c | 13 +++---------- > fs/orangefs/file.c | 35 ++++++++++++++++++++++++++--------- > fs/reiserfs/ioctl.c | 10 ++++------ > fs/ubifs/ioctl.c | 13 +++---------- > include/linux/fs.h | 3 +++ > 15 files changed, 146 insertions(+), 121 deletions(-) The gfs2 portion looks correct. Reviewed-by: Bob Peterson Regards, Bob Peterson