commit | ee60498f3ef94d7ed58dcd38077e27e839e7cafc | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sat Jul 16 17:06:30 2011 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Wed Jul 20 20:47:52 2011 -0400 |
tree | 4aabab155ca905c48177def2c7af63daf12506cb | |
parent | c066b65abfe20b7a23ad3b1161cd67315f65f3c1 [diff] [blame] |
coda_venus_readdir(): use offsetof() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/coda/dir.c b/fs/coda/dir.c index cd55323..9d52897 100644 --- a/fs/coda/dir.c +++ b/fs/coda/dir.c
@@ -449,8 +449,7 @@ struct file *host_file; struct dentry *de; struct venus_dirent *vdir; - unsigned long vdir_size = - (unsigned long)(&((struct venus_dirent *)0)->d_name); + unsigned long vdir_size = offsetof(struct venus_dirent, d_name); unsigned int type; struct qstr name; ino_t ino;