Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
ee60498f
Commit
ee60498f
authored
Jul 16, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coda_venus_readdir(): use offsetof()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
c066b65a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
fs/coda/dir.c
fs/coda/dir.c
+1
-2
No files found.
fs/coda/dir.c
View file @
ee60498f
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment