On Wed, Dec 04, 2019 at 09:11:37PM +0800, yu kuai wrote:
tmpfs support 'size', 'nr_blocks' and 'nr_inodes' mount options. mount or remount them to zero means unlimited. 'size' and 'br_blocks' can remount from limited to unlimited, while 'nr_inodes' can't.
The problem is fixed since upstream commit 0b5071dd323d (" shmem_parse_options(): use a separate structure to keep the results"). But in order to backport it, the amount of related patches need to backport is huge.
So, I made some local changes to fix the problem.
Signed-off-by: yu kuai yukuai3@huawei.com
mm/shmem.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
<formletter>
This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.
</formletter>