aboutsummaryrefslogtreecommitdiffstats
path: root/fs/logfs/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/logfs/dir.c')
-rw-r--r--fs/logfs/dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/logfs/dir.c b/fs/logfs/dir.c
index 26e4a941532f..b82751082112 100644
--- a/fs/logfs/dir.c
+++ b/fs/logfs/dir.c
@@ -284,7 +284,7 @@ static int logfs_rmdir(struct inode *dir, struct dentry *dentry)
284#define IMPLICIT_NODES 2 284#define IMPLICIT_NODES 2
285static int __logfs_readdir(struct file *file, void *buf, filldir_t filldir) 285static int __logfs_readdir(struct file *file, void *buf, filldir_t filldir)
286{ 286{
287 struct inode *dir = file->f_dentry->d_inode; 287 struct inode *dir = file_inode(file);
288 loff_t pos = file->f_pos - IMPLICIT_NODES; 288 loff_t pos = file->f_pos - IMPLICIT_NODES;
289 struct page *page; 289 struct page *page;
290 struct logfs_disk_dentry *dd; 290 struct logfs_disk_dentry *dd;
@@ -320,7 +320,7 @@ static int __logfs_readdir(struct file *file, void *buf, filldir_t filldir)
320 320
321static int logfs_readdir(struct file *file, void *buf, filldir_t filldir) 321static int logfs_readdir(struct file *file, void *buf, filldir_t filldir)
322{ 322{
323 struct inode *inode = file->f_dentry->d_inode; 323 struct inode *inode = file_inode(file);
324 ino_t pino = parent_ino(file->f_dentry); 324 ino_t pino = parent_ino(file->f_dentry);
325 int err; 325 int err;
326 326