]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix overlap of fs_info::flags values
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>
Wed, 4 Oct 2017 02:05:17 +0000 (11:05 +0900)
committerDavid Sterba <dsterba@suse.com>
Wed, 4 Oct 2017 14:44:18 +0000 (16:44 +0200)
commitb7dc2e5deae8422eeb506926a20f1ac175e432ed
tree953566fb25690a7f0245f3bbe6e5fdc6225bbffa
parent5c8547d66af76dfcd8f34f4492f1ba68d8e2703f
Btrfs: fix overlap of fs_info::flags values

Because the values of BTRFS_FS_EXCL_OP and BTRFS_FS_QUOTA_OVERRIDE overlap,
we should change the value.

First, BTRFS_FS_EXCL_OP was set to 14.

  commit 8c55a7ffcd3d ("btrfs: track exclusive filesystem operation in flags")

Next, the value of BTRFS_FS_QUOTA_OVERRIDE was set to 14.

  commit 18b0e32ae844 ("btrfs: add quota override flag to enable quota override for CAP_SYS_RESOURCE")

As a result, the value 14 overlapped, by accident.
This problem is solved by defining the value of BTRFS_FS_EXCL_OP as 16,
the flags are internal.

Fixes: 18b0e32ae844 ("btrfs: add quota override flag to enable quota override for CAP_SYS_RESOURCE")
CC: stable@vger.kernel.org # 4.13+
Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ minimize the change, update only BTRFS_FS_EXCL_OP ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h