[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/4] libdiskfs: add diskfs_make_node_alloc to allocate fat no
From: |
Justus Winter |
Subject: |
Re: [PATCH 1/4] libdiskfs: add diskfs_make_node_alloc to allocate fat nodes |
Date: |
Wed, 21 May 2014 10:43:12 +0200 |
User-agent: |
alot/0.3.4 |
Quoting Samuel Thibault (2014-05-20 21:25:10)
> Hello,
>
> Justus Winter, le Sun 18 May 2014 15:24:52 +0200, a écrit :
> > - ino64_t cache_id;
> > -
> > int author_tracks_uid;
> > +
> > + /* This is the last field. We do this so that if the node is
> > + allocated with the disknode in an contiguous block, it sits right
> > + next to the user supplied data. */
> > + ino64_t cache_id;
>
> Is this really needed?
No, it just makes it less likely that the cache_id ends up in another
cache line than the disknode.
> It breaks the current ABI, while AIUI one could just use
> sizeof(struct node) - offsetof(cache_id,struct node)
Sure.
Justus