浏览代码

[PATCH] struct path: convert s390

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 年之前
父节点
当前提交
d20343e740
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      arch/s390/hypfs/inode.c
  2. 2 2
      arch/s390/kernel/debug.c

+ 2 - 2
arch/s390/hypfs/inode.c

@@ -109,7 +109,7 @@ static void hypfs_drop_inode(struct inode *inode)
 
 
 static int hypfs_open(struct inode *inode, struct file *filp)
 static int hypfs_open(struct inode *inode, struct file *filp)
 {
 {
-	char *data = filp->f_dentry->d_inode->i_private;
+	char *data = filp->f_path.dentry->d_inode->i_private;
 	struct hypfs_sb_info *fs_info;
 	struct hypfs_sb_info *fs_info;
 
 
 	if (filp->f_mode & FMODE_WRITE) {
 	if (filp->f_mode & FMODE_WRITE) {
@@ -174,7 +174,7 @@ static ssize_t hypfs_aio_write(struct kiocb *iocb, const struct iovec *iov,
 	struct hypfs_sb_info *fs_info;
 	struct hypfs_sb_info *fs_info;
 	size_t count = iov_length(iov, nr_segs);
 	size_t count = iov_length(iov, nr_segs);
 
 
-	sb = iocb->ki_filp->f_dentry->d_inode->i_sb;
+	sb = iocb->ki_filp->f_path.dentry->d_inode->i_sb;
 	fs_info = sb->s_fs_info;
 	fs_info = sb->s_fs_info;
 	/*
 	/*
 	 * Currently we only allow one update per second for two reasons:
 	 * Currently we only allow one update per second for two reasons:

+ 2 - 2
arch/s390/kernel/debug.c

@@ -603,13 +603,13 @@ debug_open(struct inode *inode, struct file *file)
 	debug_info_t *debug_info, *debug_info_snapshot;
 	debug_info_t *debug_info, *debug_info_snapshot;
 
 
 	down(&debug_lock);
 	down(&debug_lock);
-	debug_info = file->f_dentry->d_inode->i_private;
+	debug_info = file->f_path.dentry->d_inode->i_private;
 	/* find debug view */
 	/* find debug view */
 	for (i = 0; i < DEBUG_MAX_VIEWS; i++) {
 	for (i = 0; i < DEBUG_MAX_VIEWS; i++) {
 		if (!debug_info->views[i])
 		if (!debug_info->views[i])
 			continue;
 			continue;
 		else if (debug_info->debugfs_entries[i] ==
 		else if (debug_info->debugfs_entries[i] ==
-			 file->f_dentry) {
+			 file->f_path.dentry) {
 			goto found;	/* found view ! */
 			goto found;	/* found view ! */
 		}
 		}
 	}
 	}