----- Original Message ----- > From: Darrick J. Wong <darrick.wong@xxxxxxxxxx> > > 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 <darrick.wong@xxxxxxxxxx> > Reviewed-by: Jan Kara <jack@xxxxxxx> > Reviewed-by: Christoph Hellwig <hch@xxxxxx> > Acked-by: David Sterba <dsterba@xxxxxxxx> > --- > 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 <rpeterso@xxxxxxxxxx> Regards, Bob Peterson