From: Al Viro Date: Wed, 15 May 2013 22:49:12 +0000 (-0400) Subject: [readdir] introduce ->iterate(), ctx->pos, dir_emit() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~84^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb6f619b3a49f940d7478112500da312d70866eb;p=pandora-kernel.git [readdir] introduce ->iterate(), ctx->pos, dir_emit() New method - ->iterate(file, ctx). That's the replacement for ->readdir(); it takes callback from ctx->actor, uses ctx->pos instead of file->f_pos and calls dir_emit(ctx, ...) instead of filldir(data, ...). It does *not* update file->f_pos (or look at it, for that matter); iterate_dir() does the update. Note that dir_emit() takes the offset from ctx->pos (and eventually filldir_t will lose that argument). Signed-off-by: Al Viro --- Reading git-diff-tree failed