]> git.baikalelectronics.ru Git - kernel.git/commit
staging: erofs: avoid magic constants when initializing clusterbits
authorGao Xiang <gaoxiang25@huawei.com>
Tue, 18 Sep 2018 14:27:26 +0000 (22:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Sep 2018 14:35:03 +0000 (16:35 +0200)
commit0c1c14df90f3dad6362aa9c65b4029c083308b97
treee784e6cf476065f8aac62035ad8a75ef9468b8d5
parentdcc5f19acf3c67bcf78ee214e19196d16c263468
staging: erofs: avoid magic constants when initializing clusterbits

Currently erofs only supports clustersize == blocksize.
and clustersize == 2^n * blocksize will be supported in the future.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/super.c