projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c066b65
)
coda_venus_readdir(): use offsetof()
author
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 16 Jul 2011 21:06:30 +0000
(17:06 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 21 Jul 2011 00:47:52 +0000
(20:47 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/coda/dir.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/coda/dir.c
b/fs/coda/dir.c
index cd5532398c15144ca4025cc358f4ec7c036f7d17..9d52897c1b6d86aca8bd2f620e4283f1a19a3a44 100644
(file)
--- a/
fs/coda/dir.c
+++ b/
fs/coda/dir.c
@@
-449,8
+449,7
@@
static int coda_venus_readdir(struct file *coda_file, void *buf,
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;