From 70d9ee8808b252acefe0113e256f998028e308c8 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Thu, 22 Jan 2015 14:08:16 -0500 Subject: ext4: use old interface for ext4_readdir() Signed-off-by: Theodore Ts'o --- include/linux/fs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/linux/fs.h') 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; -- cgit v1.2.3