From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751173Ab3LKGEZ (ORCPT ); Wed, 11 Dec 2013 01:04:25 -0500 Received: from szxga01-in.huawei.com ([119.145.14.64]:39630 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750782Ab3LKGEW (ORCPT ); Wed, 11 Dec 2013 01:04:22 -0500 Message-ID: <52A8004F.4090705@huawei.com> Date: Wed, 11 Dec 2013 14:03:59 +0800 From: Libo Chen User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: , , , CC: , LKML , , , , , Li Zefan Subject: [PATCH RESEND] fs: btrfs: new helper: file_inode(file) References: <52A7FEA4.80208@huawei.com> In-Reply-To: <52A7FEA4.80208@huawei.com> X-Forwarded-Message-Id: <52A7FEA4.80208@huawei.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.135.72.158] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Libo Chen --- 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