Skip to contentSkip to conversation

fs: cifs: new helper: file_inode(file)

PATCH Applied Libo Chen 3 participants 3 messages Dec 11, 2013 – May 12, 2014

Subsystems (2)
lore
Share & tools
lore

Libo Chen

author
#0 lore raw

PATCH 1/1 fs: cifs: new helper: file_inode(file)

---
 fs/cifs/ioctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/cifs/ioctl.c +1 -1
index 7749230..45cb59b 100644
@@ -85,7 +85,7 @@ static long cifs_ioctl_clone(unsigned int xid, struct file *dst_file,
 		goto out_fput;
 	}
 
-	src_inode = src_file.file->f_dentry->d_inode;
+	src_inode = file_inode(src_file.file);
 
 	/*
 	 * Note: cifs case is easier than btrfs since server responsible for
Signature · 1 line
1.8.2.2
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · On Wed, 11 Dec 2013 11:02:27 +0800 Libo Chen…
---
 fs/cifs/ioctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/cifs/ioctl.c +0 -0
index 7749230..45cb59b 100644

fs/cifs/ioctl.c static long cifs_ioctl_clone(unsigned int xid, struct file *dst_file, · line 91

Quoted 8 lines
fs/cifs/ioctl.c +1 -1
@@ -85,7 +85,7 @@ static long cifs_ioctl_clone(unsigned int xid, struct file *dst_file,
 		goto out_fput;
 	}
 
-	src_inode = src_file.file->f_dentry->d_inode;
+	src_inode = file_inode(src_file.file);
 
 	/*
 	 * Note: cifs case is easier than btrfs since server responsible for
Applied
#2 lore raw
In reply to Libo Chen

merged into cifs-2.6.git for-next

Quoted 26 lines · Libo Chen
---
 fs/cifs/ioctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/cifs/ioctl.c +1 -2
index 7749230..45cb59b 100644
@@ -85,7 +85,7 @@ static long cifs_ioctl_clone(unsigned int xid, struct file *dst_file,
                goto out_fput;
        }
 
-       src_inode = src_file.file->f_dentry->d_inode;
+       src_inode = file_inode(src_file.file);
 
        /*
         * Note: cifs case is easier than btrfs since server responsible for
--

1.8.2.2

--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 3 lines
Thanks,

Steve