Skip to contentSkip to conversation

fs: ceph: new helper: file_inode(file)

PATCH Applied Libo Chen 2 participants 2 messages Dec 11, 2013 Ceph client

lore
Share & tools
lore

Libo Chen

author
#0 lore raw

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

---
 fs/ceph/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ceph/file.c +1 -1
index 3de8982..7549bd6 100644
@@ -1018,7 +1018,7 @@ static long ceph_fallocate(struct file *file, int mode,
 				loff_t offset, loff_t length)
 {
 	struct ceph_file_info *fi = file->private_data;
-	struct inode *inode = file->f_dentry->d_inode;
+	struct inode *inode = file_inode(file);
 	struct ceph_inode_info *ci = ceph_inode(inode);
 	struct ceph_osd_client *osdc =
 		&ceph_inode_to_client(inode)->client->osdc;
Signature · 1 line
1.8.2.2
Applied
#1 lore raw

Applied, thanks!

Quoted 28 lines · Libo Chen
---
 fs/ceph/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ceph/file.c +1 -1
index 3de8982..7549bd6 100644
@@ -1018,7 +1018,7 @@ static long ceph_fallocate(struct file *file, int mode,
 				loff_t offset, loff_t length)
 {
 	struct ceph_file_info *fi = file->private_data;
-	struct inode *inode = file->f_dentry->d_inode;
+	struct inode *inode = file_inode(file);
 	struct ceph_inode_info *ci = ceph_inode(inode);
 	struct ceph_osd_client *osdc =
 		&ceph_inode_to_client(inode)->client->osdc;
Signature · 6 lines
1.8.2.2

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