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/afs | |
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/afs')
-rw-r--r-- | fs/afs/dir.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/afs/dir.c b/fs/afs/dir.c index a1645b88fe8a..d452f3de5434 100644 --- a/fs/afs/dir.c +++ b/fs/afs/dir.c | |||
@@ -26,7 +26,7 @@ static int afs_readdir(struct file *file, struct dir_context *ctx); | |||
26 | static int afs_d_revalidate(struct dentry *dentry, unsigned int flags); | 26 | static int afs_d_revalidate(struct dentry *dentry, unsigned int flags); |
27 | static int afs_d_delete(const struct dentry *dentry); | 27 | static int afs_d_delete(const struct dentry *dentry); |
28 | static void afs_d_release(struct dentry *dentry); | 28 | static void afs_d_release(struct dentry *dentry); |
29 | static int afs_lookup_filldir(void *_cookie, const char *name, int nlen, | 29 | static int afs_lookup_filldir(struct dir_context *ctx, const char *name, int nlen, |
30 | loff_t fpos, u64 ino, unsigned dtype); | 30 | loff_t fpos, u64 ino, unsigned dtype); |
31 | static int afs_create(struct inode *dir, struct dentry *dentry, umode_t mode, | 31 | static int afs_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
32 | bool excl); | 32 | bool excl); |
@@ -391,10 +391,11 @@ static int afs_readdir(struct file *file, struct dir_context *ctx) | |||
391 | * - if afs_dir_iterate_block() spots this function, it'll pass the FID | 391 | * - if afs_dir_iterate_block() spots this function, it'll pass the FID |
392 | * uniquifier through dtype | 392 | * uniquifier through dtype |
393 | */ | 393 | */ |
394 | static int afs_lookup_filldir(void *_cookie, const char *name, int nlen, | 394 | static int afs_lookup_filldir(struct dir_context *ctx, const char *name, |
395 | loff_t fpos, u64 ino, unsigned dtype) | 395 | int nlen, loff_t fpos, u64 ino, unsigned dtype) |
396 | { | 396 | { |
397 | struct afs_lookup_cookie *cookie = _cookie; | 397 | struct afs_lookup_cookie *cookie = |
398 | container_of(ctx, struct afs_lookup_cookie, ctx); | ||
398 | 399 | ||
399 | _enter("{%s,%u},%s,%u,,%llu,%u", | 400 | _enter("{%s,%u},%s,%u,,%llu,%u", |
400 | cookie->name.name, cookie->name.len, name, nlen, | 401 | cookie->name.name, cookie->name.len, name, nlen, |