Jelajahi Sumber

[PATCH] struct path: convert efs

Signed-off-by: Josef Sipek <jsipek@fsl.cs.sunysb.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Josef Sipek 18 tahun lalu
induk
melakukan
0191f2055c
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      fs/efs/dir.c

+ 1 - 1
fs/efs/dir.c

@@ -20,7 +20,7 @@ struct inode_operations efs_dir_inode_operations = {
 };
 };
 
 
 static int efs_readdir(struct file *filp, void *dirent, filldir_t filldir) {
 static int efs_readdir(struct file *filp, void *dirent, filldir_t filldir) {
-	struct inode *inode = filp->f_dentry->d_inode;
+	struct inode *inode = filp->f_path.dentry->d_inode;
 	struct buffer_head *bh;
 	struct buffer_head *bh;
 
 
 	struct efs_dir		*dirblock;
 	struct efs_dir		*dirblock;