From: Chao Yu <yuchao0@huawei.com> To: Jaegeuk Kim <jaegeuk@kernel.org>, Eric Biggers <ebiggers@kernel.org> Cc: Denis Efremov <efremov@linux.com>, <linux-kernel@vger.kernel.org>, <linux-f2fs-devel@lists.sourceforge.net> Subject: Re: [PATCH v3] f2fs: use kfree() instead of kvfree() to free superblock data Date: Thu, 18 Jun 2020 11:28:22 +0800 [thread overview] Message-ID: <033a4854-5ebd-4db4-c60f-f0f6826d70ea@huawei.com> (raw) In-Reply-To: <20200615175800.GA117170@google.com> On 2020/6/16 1:58, Jaegeuk Kim wrote: > On 06/09, Eric Biggers wrote: >> On Wed, Jun 10, 2020 at 01:14:46AM +0300, Denis Efremov wrote: >>> Use kfree() instead of kvfree() to free super in read_raw_super_block() >>> because the memory is allocated with kzalloc() in the function. >>> Use kfree() instead of kvfree() to free sbi, raw_super in >>> f2fs_fill_super() and f2fs_put_super() because the memory is allocated >>> with kzalloc(). >>> >>> Fixes: 5222595d093e ("f2fs: use kvmalloc, if kmalloc is failed") >>> Signed-off-by: Denis Efremov <efremov@linux.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Thanks, >> >> I don't think "Fixes" is appropriate here. > > Agreed. I queued this Cl without it. :) > Thanks, > >> >> kvfree() still works on kmalloc'ed memory; it's just not preferred. >> >> So this is more a cleanup than a fix. >> >> - Eric > . >
WARNING: multiple messages have this Message-ID (diff)
From: Chao Yu <yuchao0@huawei.com> To: Jaegeuk Kim <jaegeuk@kernel.org>, Eric Biggers <ebiggers@kernel.org> Cc: linux-kernel@vger.kernel.org, Denis Efremov <efremov@linux.com>, linux-f2fs-devel@lists.sourceforge.net Subject: Re: [f2fs-dev] [PATCH v3] f2fs: use kfree() instead of kvfree() to free superblock data Date: Thu, 18 Jun 2020 11:28:22 +0800 [thread overview] Message-ID: <033a4854-5ebd-4db4-c60f-f0f6826d70ea@huawei.com> (raw) In-Reply-To: <20200615175800.GA117170@google.com> On 2020/6/16 1:58, Jaegeuk Kim wrote: > On 06/09, Eric Biggers wrote: >> On Wed, Jun 10, 2020 at 01:14:46AM +0300, Denis Efremov wrote: >>> Use kfree() instead of kvfree() to free super in read_raw_super_block() >>> because the memory is allocated with kzalloc() in the function. >>> Use kfree() instead of kvfree() to free sbi, raw_super in >>> f2fs_fill_super() and f2fs_put_super() because the memory is allocated >>> with kzalloc(). >>> >>> Fixes: 5222595d093e ("f2fs: use kvmalloc, if kmalloc is failed") >>> Signed-off-by: Denis Efremov <efremov@linux.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Thanks, >> >> I don't think "Fixes" is appropriate here. > > Agreed. I queued this Cl without it. :) > Thanks, > >> >> kvfree() still works on kmalloc'ed memory; it's just not preferred. >> >> So this is more a cleanup than a fix. >> >> - Eric > . > _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
next prev parent reply other threads:[~2020-06-18 3:28 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-06-05 18:15 [PATCH 1/2] f2fs: use kfree() to free super in read_raw_super_block() Denis Efremov 2020-06-05 18:15 ` [f2fs-dev] " Denis Efremov 2020-06-05 18:15 ` [PATCH 2/2] f2fs: use kfree() to free sbi in f2fs_fill_super() Denis Efremov 2020-06-05 18:15 ` [f2fs-dev] " Denis Efremov 2020-06-08 2:51 ` Chao Yu 2020-06-08 2:51 ` Chao Yu 2020-06-08 2:47 ` [f2fs-dev] [PATCH 1/2] f2fs: use kfree() to free super in read_raw_super_block() Chao Yu 2020-06-08 2:47 ` Chao Yu 2020-06-08 15:41 ` [PATCH v2] f2fs: use kfree() instead of kvfree() to free superblock data Denis Efremov 2020-06-08 15:41 ` [f2fs-dev] " Denis Efremov 2020-06-09 1:22 ` Chao Yu 2020-06-09 1:22 ` [f2fs-dev] " Chao Yu 2020-06-09 22:14 ` [PATCH v3] " Denis Efremov 2020-06-09 22:14 ` [f2fs-dev] " Denis Efremov 2020-06-09 22:25 ` Eric Biggers 2020-06-09 22:25 ` [f2fs-dev] " Eric Biggers 2020-06-15 17:58 ` Jaegeuk Kim 2020-06-15 17:58 ` [f2fs-dev] " Jaegeuk Kim 2020-06-18 3:28 ` Chao Yu [this message] 2020-06-18 3:28 ` Chao Yu
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=033a4854-5ebd-4db4-c60f-f0f6826d70ea@huawei.com \ --to=yuchao0@huawei.com \ --cc=ebiggers@kernel.org \ --cc=efremov@linux.com \ --cc=jaegeuk@kernel.org \ --cc=linux-f2fs-devel@lists.sourceforge.net \ --cc=linux-kernel@vger.kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.