Thread (23 messages) read the whole thread 23 messages, 4 authors, 2024-02-23

Re: [PATCH v2 09/17] m68k: Implement xor_unlock_is_negative_byte

From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2023-10-05 14:33:22
Also in: linux-fsdevel, linux-mm

On Wed, Oct 4, 2023 at 6:53 PM Matthew Wilcox (Oracle)
[off-list ref] wrote:
Using EOR to clear the guaranteed-to-be-set lock bit will test the
negative flag just like the x86 implementation.  This should be
more efficient than the generic implementation in filemap.c.  It
would be better if m68k had __GCC_ASM_FLAG_OUTPUTS__.

Coldfire doesn't have a byte-sized EOR, so we test bit 7 after the
EOR, which is a second memory access, but it's slightly better than
the current C code.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help