aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2015-01-22 14:08:16 -0500
committerMister Oyster <oysterized@gmail.com>2017-05-27 19:39:53 +0200
commit70d9ee8808b252acefe0113e256f998028e308c8 (patch)
tree722cdf3a8f4c616469dd093ed39ee535991ea152 /include
parentd75df15e1d1bcbfe5c20a0bcb4d0762401650f5e (diff)
ext4: use old interface for ext4_readdir()
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'include')
-rw-r--r--include/linux/fs.h3
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;