Skip to contentSkip to conversation

cifs: new helper: file_inode(file)

PATCH New ZhangZhen 1 participant 2 messages Mar 6, 2014 – Mar 27, 2014 3 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

ZhangZhen

author
#2 lore raw

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

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 · 12 lines
1.8.1.4


.




_______________________________________________
kernel.openeuler mailing list
[email protected]
http://rnd-openeuler.huawei.com/mailman/listinfo/kernel.openeuler

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#4 lore raw

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

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.1.4