diff options
author | Baokun Li <libaokun1@huawei.com> | 2022-10-26 07:23:08 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-07 13:11:59 +0300 |
commit | 7720e1e43315bc9795dbaae51a9d776a982b5d3b (patch) | |
tree | b344fdfefb6468c689e59201f2ddb87f024d601c /fs/quota | |
parent | 488a5c2bf7543c3cd3f07a025f2e62be91599430 (diff) | |
download | linux-7720e1e43315bc9795dbaae51a9d776a982b5d3b.tar.xz |
ext4: add helper to check quota inums
commit 07342ec259df2a35d6a34aebce010567a80a0e15 upstream.
Before quota is enabled, a check on the preset quota inums in
ext4_super_block is added to prevent wrong quota inodes from being loaded.
In addition, when the quota fails to be enabled, the quota type and quota
inum are printed to facilitate fault locating.
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Jason Yan <yanaijie@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20221026042310.3839669-3-libaokun1@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/quota')
0 files changed, 0 insertions, 0 deletions