* [PATCH] fs: btrfs: new helper: file_inode(file)
@ 2013-12-11 5:56 Libo Chen
2013-12-11 6:03 ` [PATCH RESEND] " Libo Chen
0 siblings, 1 reply; 2+ messages in thread
From: Libo Chen @ 2013-12-11 5:56 UTC (permalink / raw)
To: clm, jbacik, chris.mason, jbacik
Cc: linux-btrfs, LKML, mfasheh, hch, viro, miaox, Li Zefan
Signed-off-by: Libo Chen <clbchenlibo.chen@huawei.com
---
fs/btrfs/ioctl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index a111622..fdfc0d7 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -2690,7 +2690,7 @@ static long btrfs_ioctl_file_extent_same(struct file *file,
struct btrfs_ioctl_same_args tmp;
struct btrfs_ioctl_same_args *same;
struct btrfs_ioctl_same_extent_info *info;
- struct inode *src = file->f_dentry->d_inode;
+ struct inode *src = file_inode(file);
struct file *dst_file = NULL;
struct inode *dst;
u64 off;
@@ -2779,7 +2779,7 @@ static long btrfs_ioctl_file_extent_same(struct file *file,
if (file->f_path.mnt != dst_file->f_path.mnt)
goto next;
- dst = dst_file->f_dentry->d_inode;
+ dst = file_inode(dst_file);
if (src->i_sb != dst->i_sb)
goto next;
--
1.8.2.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH RESEND] fs: btrfs: new helper: file_inode(file)
2013-12-11 5:56 [PATCH] fs: btrfs: new helper: file_inode(file) Libo Chen
@ 2013-12-11 6:03 ` Libo Chen
0 siblings, 0 replies; 2+ messages in thread
From: Libo Chen @ 2013-12-11 6:03 UTC (permalink / raw)
To: clm, jbacik, chris.mason, jbacik
Cc: linux-btrfs, LKML, mfasheh, hch, viro, miaox, Li Zefan
Signed-off-by: Libo Chen <clbchenlibo.chen@huawei.com>
---
fs/btrfs/ioctl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
- just change style
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index a111622..fdfc0d7 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -2690,7 +2690,7 @@ static long btrfs_ioctl_file_extent_same(struct file *file,
struct btrfs_ioctl_same_args tmp;
struct btrfs_ioctl_same_args *same;
struct btrfs_ioctl_same_extent_info *info;
- struct inode *src = file->f_dentry->d_inode;
+ struct inode *src = file_inode(file);
struct file *dst_file = NULL;
struct inode *dst;
u64 off;
@@ -2779,7 +2779,7 @@ static long btrfs_ioctl_file_extent_same(struct file *file,
if (file->f_path.mnt != dst_file->f_path.mnt)
goto next;
- dst = dst_file->f_dentry->d_inode;
+ dst = file_inode(dst_file);
if (src->i_sb != dst->i_sb)
goto next;
--
1.8.2.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-11 6:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-11 5:56 [PATCH] fs: btrfs: new helper: file_inode(file) Libo Chen
2013-12-11 6:03 ` [PATCH RESEND] " Libo Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).