Eric Biggers 360985573b f2fs: separate f2fs i_flags from fs_flags and ext4 i_flags
f2fs copied all the on-disk i_flags from ext4, and along with it the
assumption that the on-disk i_flags are the same as the bits used by
FS_IOC_GETFLAGS and FS_IOC_SETFLAGS.  This is problematic because
reserving an on-disk inode flag in either filesystem's i_flags or in
these ioctls effectively reserves it in all the other places too.  In
fact, most of the "f2fs i_flags" are not used by f2fs at all.

Fix this by separating f2fs's i_flags from the ioctl bits and ext4's
i_flags.

In the process, un-reserve all "f2fs i_flags" that aren't actually
supported by f2fs.  This included various flags that were not settable
at all, as well as various flags that were settable by FS_IOC_SETFLAGS
but didn't actually do anything.

There's a slight chance we'll need to add some flag(s) back to
FS_IOC_SETFLAGS in order to avoid breaking users who expect f2fs to
accept some random flag(s).  But hopefully such users don't exist.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2019-06-21 10:41:57 -07:00
..
2019-05-01 22:43:23 -04:00
2019-05-07 20:51:58 -07:00
2019-05-01 22:43:23 -04:00
2019-05-01 22:43:24 -04:00
2019-05-07 18:14:36 -07:00
2019-05-01 22:43:26 -04:00
2019-05-01 22:43:24 -04:00
\n
2019-05-13 14:59:55 -07:00
2019-05-01 22:43:24 -04:00
2019-05-14 08:59:14 -07:00
2019-05-01 22:43:24 -04:00
2019-05-01 22:43:24 -04:00
2019-05-01 22:43:24 -04:00
2019-05-01 22:43:24 -04:00
2019-05-07 11:37:27 -07:00
2019-05-01 22:43:25 -04:00
2019-05-09 14:33:15 -07:00
2019-05-09 14:33:15 -07:00
2019-05-01 22:43:25 -04:00
\n
2019-05-13 15:08:16 -07:00
2019-05-01 22:43:26 -04:00
2019-05-14 09:02:14 -07:00
2019-05-01 22:43:25 -04:00
2019-05-01 22:43:25 -04:00
\n
2019-05-13 14:59:55 -07:00
2019-05-01 22:43:25 -04:00
\n
2019-05-13 14:59:55 -07:00
2019-05-07 18:14:36 -07:00
2018-10-29 14:29:58 -07:00
2019-05-14 09:47:48 -07:00
2019-03-07 18:32:01 -08:00
2019-04-08 18:21:02 -05:00
2019-03-08 14:48:40 -08:00
2019-05-07 18:14:36 -07:00
2019-01-30 17:44:07 -05:00
2019-04-09 19:20:57 -04:00
2019-04-26 11:09:55 -07:00
2019-04-06 10:48:35 -06:00
2019-02-07 16:38:35 +01:00