diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/fs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 4dc48e4af..9bfff5d2b 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1536,6 +1536,7 @@ int fiemap_check_flags(struct fiemap_extent_info *fieinfo, u32 fs_flags); typedef int (*filldir_t)(void *, const char *, int, loff_t, u64, unsigned); struct dir_context { const filldir_t actor; + void *dirent; loff_t pos; bool romnt; }; @@ -1544,7 +1545,7 @@ static inline bool dir_emit(struct dir_context *ctx, const char *name, int namelen, u64 ino, unsigned type) { - return ctx->actor(ctx, name, namelen, ctx->pos, ino, type) == 0; + return ctx->actor(ctx->dirent, name, namelen, ctx->pos, ino, type) == 0; } struct block_device_operations; |
