]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: increase the limit for reserve_root
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 23 Aug 2022 17:18:42 +0000 (10:18 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:22:17 +0000 (13:22 +0200)
commit19319be056c8fa94feb6c2725a7ff20daf06e8e3
tree2141dd558d729fed542d68d667881ec1d5521123
parent446572d7f3ed9cc8eb76ae5cad7aedc460553792
f2fs: increase the limit for reserve_root

commit dc72f8812aa6ad64ce3bfc3798bbee8eae07f4ce upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/super.c