mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fs: ceph: new helper: file_inode(file)
@ 2013-12-11  5:49 Libo Chen
  2013-12-11  5:53 ` Sage Weil
  0 siblings, 1 reply; 2+ messages in thread
From: Libo Chen @ 2013-12-11  5:49 UTC (permalink / raw)
  To: sage, majianpeng, yunchuanwen, liwang, zheng.z.yan
  Cc: ceph-devel, LKML, Li Zefan, milosz


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

diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index 3de8982..7549bd6 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -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;
-- 
1.8.2.2


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

* Re: [PATCH] fs: ceph: new helper: file_inode(file)
  2013-12-11  5:49 [PATCH] fs: ceph: new helper: file_inode(file) Libo Chen
@ 2013-12-11  5:53 ` Sage Weil
  0 siblings, 0 replies; 2+ messages in thread
From: Sage Weil @ 2013-12-11  5:53 UTC (permalink / raw)
  To: Libo Chen
  Cc: majianpeng, yunchuanwen, liwang, zheng.z.yan, ceph-devel, LKML,
	Li Zefan, milosz

Applied, thanks!

On Wed, 11 Dec 2013, Libo Chen wrote:

> 
> Signed-off-by: Libo Chen <clbchenlibo.chen@huawei.com>
> ---
>  fs/ceph/file.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/ceph/file.c b/fs/ceph/file.c
> index 3de8982..7549bd6 100644
> --- a/fs/ceph/file.c
> +++ b/fs/ceph/file.c
> @@ -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;
> -- 
> 1.8.2.2
> 
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 

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

end of thread, other threads:[~2013-12-11  5:53 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:49 [PATCH] fs: ceph: new helper: file_inode(file) Libo Chen
2013-12-11  5:53 ` Sage Weil

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

all inboxes | Powered by JetHome®