From: Cezary Rojewski <cezary.rojewski@intel.com>
To: Matthew Wilcox <willy@infradead.org>
Cc: <alsa-devel@alsa-project.org>, <broonie@kernel.org>,
<tiwai@suse.com>, <perex@perex.cz>,
<amadeuszx.slawinski@linux.intel.com>,
<pierre-louis.bossart@linux.intel.com>, <hdegoede@redhat.com>,
<lgirdwood@gmail.com>, <kai.vehmanen@linux.intel.com>,
<peter.ujfalusi@linux.intel.com>,
<ranjani.sridharan@linux.intel.com>,
<yung-chuan.liao@linux.intel.com>, <viro@zeniv.linux.org.uk>,
<linux-fsdevel@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<andy.shevchenko@gmail.com>
Subject: Re: [PATCH v2 1/2] libfs: Introduce tokenize_user_input()
Date: Wed, 31 Aug 2022 18:15:32 +0200 [thread overview]
Message-ID: <1c27b6b3-2d3c-d750-58ad-bd35ede421f6@intel.com> (raw)
In-Reply-To: <Yw5X379ct1PK6wZO@casper.infradead.org>
On 2022-08-30 8:33 PM, Matthew Wilcox wrote:
> On Thu, Aug 25, 2022 at 06:48:32PM +0200, Cezary Rojewski wrote:
>> Add new helper function to allow for splitting specified user string
>> into a sequence of integers. Internally it makes use of get_options() so
>> the returned sequence contains the integers extracted plus an additional
>> element that begins the sequence and specifies the integers count.
>>
>> Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
>> Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
>> ---
>> fs/libfs.c | 45 +++++++++++++++++++++++++++++++++++++++++++++
>> include/linux/fs.h | 1 +
>
> This really has nothing to do with filesystems. Surely
> string_helpers.[ch] is the appropriate place for this code?
> Also get_options() should probably move its prototype from kernel.h to
> string_helpers.h.
Hello Matthew,
Thanks for your input. The initial version of the change was located in
the string_helpers.[ch] just like you propose and I have no problem
moving it back again. string_helpers are devoid of __user content though
and that's why in v2 it's part of libfs instead.
I'll give a day or two to see if there are other suggestions and then
send v3 relocating the implementation.
Regards,
Czarek
next prev parent reply other threads:[~2022-08-31 16:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-25 16:48 [PATCH v2 0/2] libfs: Introduce tokenize_user_input() Cezary Rojewski
2022-08-25 16:48 ` [PATCH v2 1/2] " Cezary Rojewski
2022-08-30 18:33 ` Matthew Wilcox
2022-08-31 16:15 ` Cezary Rojewski [this message]
2022-08-25 16:48 ` [PATCH v2 2/2] ASoC: SOF: Remove strsplit_u32() and tokenize_input() Cezary Rojewski
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=1c27b6b3-2d3c-d750-58ad-bd35ede421f6@intel.com \
--to=cezary.rojewski@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=amadeuszx.slawinski@linux.intel.com \
--cc=andy.shevchenko@gmail.com \
--cc=broonie@kernel.org \
--cc=hdegoede@redhat.com \
--cc=kai.vehmanen@linux.intel.com \
--cc=lgirdwood@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=peter.ujfalusi@linux.intel.com \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=ranjani.sridharan@linux.intel.com \
--cc=tiwai@suse.com \
--cc=viro@zeniv.linux.org.uk \
--cc=willy@infradead.org \
--cc=yung-chuan.liao@linux.intel.com \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).