Re: [PATCH] mm/shmem.c: Fix the missing unaccount on the failed path

2020-09-21 Thread Tianjia Zhang
On 9/21/20 2:49 AM, Hugh Dickins wrote: On Mon, 21 Sep 2020, Tianjia Zhang wrote: In function __shmem_file_setup(), shmem_unacct_size() is forgotten on the failed path, so add it. Fixes: 93dec2da7b234 ("... and switch shmem_file_setup() to alloc_file_pseudo()") Cc: Al Viro Signed-off-by:

Re: [PATCH] mm/shmem.c: Fix the missing unaccount on the failed path

2020-09-20 Thread Hugh Dickins
On Mon, 21 Sep 2020, Tianjia Zhang wrote: > In function __shmem_file_setup(), shmem_unacct_size() is forgotten > on the failed path, so add it. > > Fixes: 93dec2da7b234 ("... and switch shmem_file_setup() to > alloc_file_pseudo()") > Cc: Al Viro > Signed-off-by: Tianjia Zhang > --- >

[PATCH] mm/shmem.c: Fix the missing unaccount on the failed path

2020-09-20 Thread Tianjia Zhang
In function __shmem_file_setup(), shmem_unacct_size() is forgotten on the failed path, so add it. Fixes: 93dec2da7b234 ("... and switch shmem_file_setup() to alloc_file_pseudo()") Cc: Al Viro Signed-off-by: Tianjia Zhang --- mm/shmem.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)