f2fs: increase the limit for reserve_root
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 23 Aug 2022 17:18:42 +0000 (10:18 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 13 Sep 2022 06:08:21 +0000 (23:08 -0700)
commitda35fe96d12d15779f3cb74929b7ed03941cf983
treeb5980d9cb43c9323ead9c6dad5ded83db63fc259
parent4f99484d27961cb194cebcd917176fa038a5025f
f2fs: increase the limit for reserve_root

This patch increases the threshold that limits the reserved root space from 0.2%
to 12.5% by using simple shift operation.

Typically Android sets 128MB, but if the storage capacity is 32GB, 0.2% which is
around 64MB becomes too small. Let's relax it.

Cc: stable@vger.kernel.org
Reported-by: Aran Dalton <arda@allwinnertech.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c