From: Matthew Wilcox <willy@infradead.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Randy Dunlap <rdunlap@infradead.org>,
broonie@kernel.org, linux-fsdevel@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-mm@kvack.org,
linux-next@vger.kernel.org, mhocko@suse.cz,
mm-commits@vger.kernel.org, sfr@canb.auug.org.au,
Phillip Lougher <phillip@squashfs.org.uk>,
squashfs-devel@lists.sourceforge.net,
Philippe Liard <pliard@google.com>
Subject: Re: mmotm 2020-04-17-20-35 uploaded (squashfs)
Date: Sun, 19 Apr 2020 03:56:33 -0700 [thread overview]
Message-ID: <20200419105633.GX5820@bombadil.infradead.org> (raw)
In-Reply-To: <20200418124728.51632dbebc8b5dbc864cc34f@linux-foundation.org>
On Sat, Apr 18, 2020 at 12:47:28PM -0700, Andrew Morton wrote:
> On Sat, 18 Apr 2020 08:56:31 -0700 Randy Dunlap <rdunlap@infradead.org> wrote:
>
> > On 4/17/20 8:36 PM, akpm@linux-foundation.org wrote:
> > > The mm-of-the-moment snapshot 2020-04-17-20-35 has been uploaded to
> > >
> > > http://www.ozlabs.org/~akpm/mmotm/
> > >
> > > mmotm-readme.txt says
> > >
> > > README for mm-of-the-moment:
> > >
> > > http://www.ozlabs.org/~akpm/mmotm/
> > >
> > > This is a snapshot of my -mm patch queue. Uploaded at random hopefully
> > > more than once a week.
> > >
> > > You will need quilt to apply these patches to the latest Linus release (5.x
> > > or 5.x-rcY). The series file is in broken-out.tar.gz and is duplicated in
> > > http://ozlabs.org/~akpm/mmotm/series
> > >
> > > The file broken-out.tar.gz contains two datestamp files: .DATE and
> > > .DATE-yyyy-mm-dd-hh-mm-ss. Both contain the string yyyy-mm-dd-hh-mm-ss,
> > > followed by the base kernel version against which this patch series is to
> > > be applied.
> >
> > on x86_64:
> >
> > CC fs/squashfs/decompressor_multi_percpu.o
> > ../fs/squashfs/decompressor_multi_percpu.c:75:5: error: conflicting types for ‘squashfs_decompress’
> > int squashfs_decompress(struct squashfs_sb_info *msblk, struct buffer_head **bh,
> > ^~~~~~~~~~~~~~~~~~~
>
> Thanks. Seems that file was missed.
>
> Also, this code jumps through horrifying hoops in order to initialize
> locals at their definition site. But the code looks so much better if
> we Just Don't Do That!
I think the code would look even better if things just Had The Right Type!
struct squashfs_sb_info {
...
- struct squashfs_stream *stream;
+ union {
+ struct squashfs_stream *stream;
+ struct squashfs_stream __percpu *percpu_stream;
+ };
int squashfs_decompress(struct squashfs_sb_info *msblk, struct bio *bio,
int offset, int length, struct squashfs_page_actor *output)
{
struct squashfs_stream *stream = get_cpu_ptr(msblk->percpu_stream);
int res = msblk->decompressor->decompress(msblk, stream->stream, bh, b,
offset, length, output);
...
As an aside, that calling convention could do with putting some of the
arguments into a struct so the CPU spends less time shuffling arguments
from one register to another.
prev parent reply other threads:[~2020-04-19 10:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-18 3:36 mmotm 2020-04-17-20-35 uploaded akpm
2020-04-18 15:56 ` mmotm 2020-04-17-20-35 uploaded (squashfs) Randy Dunlap
2020-04-18 19:47 ` Andrew Morton
2020-04-19 10:56 ` Matthew Wilcox [this message]
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=20200419105633.GX5820@bombadil.infradead.org \
--to=willy@infradead.org \
--cc=akpm@linux-foundation.org \
--cc=broonie@kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-next@vger.kernel.org \
--cc=mhocko@suse.cz \
--cc=mm-commits@vger.kernel.org \
--cc=phillip@squashfs.org.uk \
--cc=pliard@google.com \
--cc=rdunlap@infradead.org \
--cc=sfr@canb.auug.org.au \
--cc=squashfs-devel@lists.sourceforge.net \
/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).