lkml.org 
[lkml]   [2022]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] netfs: Use container_of() for offset casting
Date
David Laight <David.Laight@ACULAB.COM> wrote:

> Can't you just name the structure so it is:
>
> struct afs_vnode {
> struct netfs_i_c_pair {
> /* These must be contiguous */
> struct inode vfs_inode;
> struct netfs_i_context netfs_ctx;
> };
> ...
> };

No. C won't let you do that (the same thing has to be done in 9p, ceph as
well, and at some point hopefully cifs and nfs too).

David

\
 
 \ /
  Last update: 2022-05-18 17:24    [W:0.218 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site