diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-18 02:58:58 (GMT) |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-06-29 08:56:51 (GMT) |
commit | cd62cdae0bd7fb76cae66347dc4fc00e87ffc1c4 (patch) | |
tree | da8c125f785a28479685078620fd0d46d9c071b0 /fs/reiserfs/dir.c | |
parent | 99ce4169a9ff1c6ecdcccf01638eb6d76e5d84d1 (diff) | |
download | linux-cd62cdae0bd7fb76cae66347dc4fc00e87ffc1c4.tar.xz |
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.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/reiserfs/dir.c b/fs/reiserfs/dir.c index df25fff..03e4ca5 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 |