Commit ee60498f authored by Al Viro's avatar Al Viro

coda_venus_readdir(): use offsetof()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent c066b65a
...@@ -449,8 +449,7 @@ static int coda_venus_readdir(struct file *coda_file, void *buf, ...@@ -449,8 +449,7 @@ static int coda_venus_readdir(struct file *coda_file, void *buf,
struct file *host_file; struct file *host_file;
struct dentry *de; struct dentry *de;
struct venus_dirent *vdir; struct venus_dirent *vdir;
unsigned long vdir_size = unsigned long vdir_size = offsetof(struct venus_dirent, d_name);
(unsigned long)(&((struct venus_dirent *)0)->d_name);
unsigned int type; unsigned int type;
struct qstr name; struct qstr name;
ino_t ino; ino_t ino;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment