diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2014-10-30 12:37:34 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-10-31 17:48:54 -0400 |
commit | ac7576f4b1da8c9c6bc1ae026c2b9e86ae617ba5 (patch) | |
tree | d1bc42645ba37d31ce4cd2208f8e4ab14d47467c /fs/reiserfs | |
parent | 9f2f7d4c8dfcf4617af5de6ea381b91deac3db48 (diff) |
vfs: make first argument of dir_context.actor typed
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/reiserfs')
-rw-r--r-- | fs/reiserfs/xattr.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/fs/reiserfs/xattr.c b/fs/reiserfs/xattr.c index 7c36898af402..628248ce2f8b 100644 --- a/fs/reiserfs/xattr.c +++ b/fs/reiserfs/xattr.c | |||
@@ -188,10 +188,11 @@ struct reiserfs_dentry_buf { | |||
188 | }; | 188 | }; |
189 | 189 | ||
190 | static int | 190 | static int |
191 | fill_with_dentries(void *buf, const char *name, int namelen, loff_t offset, | 191 | fill_with_dentries(struct dir_context *ctx, const char *name, int namelen, |
192 | u64 ino, unsigned int d_type) | 192 | loff_t offset, u64 ino, unsigned int d_type) |
193 | { | 193 | { |
194 | struct reiserfs_dentry_buf *dbuf = buf; | 194 | struct reiserfs_dentry_buf *dbuf = |
195 | container_of(ctx, struct reiserfs_dentry_buf, ctx); | ||
195 | struct dentry *dentry; | 196 | struct dentry *dentry; |
196 | 197 | ||
197 | WARN_ON_ONCE(!mutex_is_locked(&dbuf->xadir->d_inode->i_mutex)); | 198 | WARN_ON_ONCE(!mutex_is_locked(&dbuf->xadir->d_inode->i_mutex)); |
@@ -824,10 +825,12 @@ struct listxattr_buf { | |||
824 | struct dentry *dentry; | 825 | struct dentry *dentry; |
825 | }; | 826 | }; |
826 | 827 | ||
827 | static int listxattr_filler(void *buf, const char *name, int namelen, | 828 | static int listxattr_filler(struct dir_context *ctx, const char *name, |
828 | loff_t offset, u64 ino, unsigned int d_type) | 829 | int namelen, loff_t offset, u64 ino, |
830 | unsigned int d_type) | ||
829 | { | 831 | { |
830 | struct listxattr_buf *b = (struct listxattr_buf *)buf; | 832 | struct listxattr_buf *b = |
833 | container_of(ctx, struct listxattr_buf, ctx); | ||
831 | size_t size; | 834 | size_t size; |
832 | 835 | ||
833 | if (name[0] != '.' || | 836 | if (name[0] != '.' || |