OSDN Git Service

f2fs: use generic checking and prep function for FS_IOC_SETFLAGS
authorEric Biggers <ebiggers@google.com>
Mon, 1 Jul 2019 20:26:28 +0000 (13:26 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 30 Jul 2019 20:51:31 +0000 (13:51 -0700)
commitd608dc9a11da6bea307f30b1a4d19dc808a51fab
tree2aea1e3de006ca404d647679b7fca60916ccd4cf
parenta35f5a0be11e3976abc419d9e162261d579158a3
f2fs: use generic checking and prep function for FS_IOC_SETFLAGS

Make the f2fs implementation of FS_IOC_SETFLAGS use the new VFS helper
function vfs_ioc_setflags_prepare().

This is based on a patch from Darrick Wong, but reworked to apply after
commit 360985573b55 ("f2fs: separate f2fs i_flags from fs_flags and ext4
i_flags").

Originally-from: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c
fs/inode.c
include/linux/fs.h