[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200902104859.GA79629@chrisdown.name>
Date: Wed, 2 Sep 2020 11:48:59 +0100
From: Chris Down <chris@...isdown.name>
To: Byron Stanoszek <gandalf@...ds.org>
Cc: Hugh Dickins <hughd@...gle.com>,
Andrew Morton <akpm@...ux-foundation.org>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] tmpfs: Restore functionality of nr_inodes=0
Byron Stanoszek writes:
>Commit e809d5f0b5c9 ("tmpfs: per-superblock i_ino support") made changes to
>shmem_reserve_inode() in mm/shmem.c, however the original test for
>(sbinfo->max_inodes) got dropped. This causes mounting tmpfs with option
>nr_inodes=0 to fail:
>
> # mount -ttmpfs -onr_inodes=0 none /ext0
> mount: /ext0: mount(2) system call failed: Cannot allocate memory.
>
>This patch restores the nr_inodes=0 functionality.
>
>Fixes: e809d5f0b5c9 ("tmpfs: per-superblock i_ino support")
>Cc: Chris Down <chris@...isdown.name>
>Signed-off-by: Byron Stanoszek <gandalf@...ds.org>
Acked-by: Chris Down <chris@...isdown.name>
Thanks, good catch.
Powered by blists - more mailing lists