]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: remove redundant check from f2fs_setflags_common()
authorEric Biggers <ebiggers@google.com>
Mon, 1 Jul 2019 20:26:30 +0000 (13:26 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 13 Jul 2019 02:39:07 +0000 (19:39 -0700)
commita60f625d68e1538124210cbff54f444ad30a6f7d
treebe65832ad91fd00ee029b4d72b1319f38025d9a1
parentb8e0a20158e3a97eae1211a12cf613547d10d691
f2fs: remove redundant check from f2fs_setflags_common()

Now that f2fs_ioc_setflags() and f2fs_ioc_fssetxattr() call the VFS
helper functions which check for permission to change the immutable and
append-only flags, it's no longer needed to do this check in
f2fs_setflags_common() too.  So remove it.

This is based on a patch from Darrick Wong, but reworked to apply after
commit ab77eb1784fb ("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