grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Kiper <dkiper@net-space.pl>
To: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Cc: grub-devel@gnu.org
Subject: Re: [PATCH] fs/xfs: Handle non-continuous data blocks in directory extents
Date: Mon, 18 Mar 2024 15:41:36 +0100	[thread overview]
Message-ID: <20240318144136.arnn6lwrvphntepf@tomti.i.net-space.pl> (raw)
In-Reply-To: <CAEaD8JOKbQyeDQdmr9EosJv3Dk-qVjkd2fAs5vrgRVAxTUQtDA@mail.gmail.com>

On Sat, Mar 16, 2024 at 02:26:55AM +0300, Vladimir 'phcoder' Serbinenko wrote:
> On Sat, Feb 17, 2024 at 12:39 AM Jon DeVree <nuxi@vault24.org> wrote:
> >
> > On Thu, Feb 15, 2024 at 20:33:13 +0300, Vladimir 'phcoder' Serbinenko wrote:
> > > Is the pointer guaranteed to be aligned? If not you have to use unaligned
> > > access.
> >
> > I don't know what alignment guarantees grub_malloc() makes. As long as
> > they are close to what the regular C malloc() guarantees then it should
> > be fine.
>
> grub_malloc design guarantees the largest natural alignment of all types.
> grub_malloc implementation guarantees alignment of 4 * sizeof(void*).
>
> My concern was that the pointer is moved after alloc but it turns own
> it was not the case.
> So there are no unaligned access concerns
>
> The code still violates cast-align and strict aliasing invariants but
> so is the rest of XFS code.
> So I'm happy to merge this patch
>
> Reviewed-By: Vladimir Serbinenko <phcoder@gmail.com>

Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>

I will push this patch together with other patches this week.
Sorry for delay...

Daniel

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

      reply	other threads:[~2024-03-18 14:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-11 15:34 [PATCH] fs/xfs: Handle non-continuous data blocks in directory extents Jon DeVree
2024-02-15 13:51 ` Daniel Kiper
2024-02-15 14:54   ` Nicolas Frayer
2024-03-05 17:15     ` Nicolas Frayer
2024-02-15 15:03   ` Marta Lewandowska
2024-02-15 17:33 ` Vladimir 'phcoder' Serbinenko
2024-02-16 21:39   ` Jon DeVree
2024-03-15 23:26     ` Vladimir 'phcoder' Serbinenko
2024-03-18 14:41       ` Daniel Kiper [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=20240318144136.arnn6lwrvphntepf@tomti.i.net-space.pl \
    --to=dkiper@net-space.pl \
    --cc=grub-devel@gnu.org \
    --cc=phcoder@gmail.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 read-only IMAP folder(s) and NNTP newsgroup(s).