public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs: cifs: new helper: file_inode(file)
@ 2013-12-11  3:02 Libo Chen
  2013-12-11 11:33 ` Jeff Layton
  2014-05-12  4:08 ` Steve French
  0 siblings, 2 replies; 3+ messages in thread
From: Libo Chen @ 2013-12-11  3:02 UTC (permalink / raw)
  To: sfrench; +Cc: linux-cifs, samba-technical, LKML, Li Zefan


Signed-off-by: Libo Chen <clbchenlibo.chen@huawei.com>
---
 fs/cifs/ioctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/cifs/ioctl.c b/fs/cifs/ioctl.c
index 7749230..45cb59b 100644
--- a/fs/cifs/ioctl.c
+++ b/fs/cifs/ioctl.c
@@ -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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] fs: cifs: new helper: file_inode(file)
  2013-12-11  3:02 [PATCH] fs: cifs: new helper: file_inode(file) Libo Chen
@ 2013-12-11 11:33 ` Jeff Layton
  2014-05-12  4:08 ` Steve French
  1 sibling, 0 replies; 3+ messages in thread
From: Jeff Layton @ 2013-12-11 11:33 UTC (permalink / raw)
  To: Libo Chen; +Cc: sfrench, linux-cifs, samba-technical, LKML, Li Zefan

On Wed, 11 Dec 2013 11:02:27 +0800
Libo Chen <clbchenlibo.chen@huawei.com> wrote:

> 
> Signed-off-by: Libo Chen <clbchenlibo.chen@huawei.com>
> ---
>  fs/cifs/ioctl.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/cifs/ioctl.c b/fs/cifs/ioctl.c
> index 7749230..45cb59b 100644
> --- a/fs/cifs/ioctl.c
> +++ b/fs/cifs/ioctl.c
> @@ -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

Acked-by: Jeff Layton <jlayton@redhat.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] fs: cifs: new helper: file_inode(file)
  2013-12-11  3:02 [PATCH] fs: cifs: new helper: file_inode(file) Libo Chen
  2013-12-11 11:33 ` Jeff Layton
@ 2014-05-12  4:08 ` Steve French
  1 sibling, 0 replies; 3+ messages in thread
From: Steve French @ 2014-05-12  4:08 UTC (permalink / raw)
  To: Libo Chen
  Cc: Steve French, linux-cifs@vger.kernel.org, samba-technical, LKML,
	Li Zefan

merged into cifs-2.6.git for-next

On Tue, Dec 10, 2013 at 9:02 PM, Libo Chen <clbchenlibo.chen@huawei.com> wrote:
>
> Signed-off-by: Libo Chen <clbchenlibo.chen@huawei.com>
> ---
>  fs/cifs/ioctl.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/cifs/ioctl.c b/fs/cifs/ioctl.c
> index 7749230..45cb59b 100644
> --- a/fs/cifs/ioctl.c
> +++ b/fs/cifs/ioctl.c
> @@ -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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-05-12  4:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-11  3:02 [PATCH] fs: cifs: new helper: file_inode(file) Libo Chen
2013-12-11 11:33 ` Jeff Layton
2014-05-12  4:08 ` Steve French

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox