summaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/dir.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-05-17 22:58:58 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-06-29 12:56:51 +0400
commitcd62cdae0bd7fb76cae66347dc4fc00e87ffc1c4 (patch)
treeda8c125f785a28479685078620fd0d46d9c071b0 /fs/reiserfs/dir.c
parent99ce4169a9ff1c6ecdcccf01638eb6d76e5d84d1 (diff)
downloadlinux-cd62cdae0bd7fb76cae66347dc4fc00e87ffc1c4.tar.bz2
reiserfs: switch reiserfs_readdir_dentry to inode
... and clean the callers up a bit Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/reiserfs/dir.c')
-rw-r--r--fs/reiserfs/dir.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/reiserfs/dir.c b/fs/reiserfs/dir.c
index df25fff3714a..03e4ca5624d6 100644
--- a/fs/reiserfs/dir.c
+++ b/fs/reiserfs/dir.c
@@ -57,9 +57,8 @@ static inline bool is_privroot_deh(struct inode *dir, struct reiserfs_de_head *d
deh->deh_objectid == INODE_PKEY(privroot->d_inode)->k_objectid);
}
-int reiserfs_readdir_dentry(struct dentry *dentry, struct dir_context *ctx)
+int reiserfs_readdir_inode(struct inode *inode, struct dir_context *ctx)
{
- struct inode *inode = dentry->d_inode;
struct cpu_key pos_key; /* key of current position in the directory (key of directory entry) */
INITIALIZE_PATH(path_to_entry);
struct buffer_head *bh;
@@ -243,7 +242,7 @@ out:
static int reiserfs_readdir(struct file *file, struct dir_context *ctx)
{
- return reiserfs_readdir_dentry(file->f_path.dentry, ctx);
+ return reiserfs_readdir_inode(file_inode(file), ctx);
}
/* compose directory item containing "." and ".." entries (entries are