From mboxrd@z Thu Jan 1 00:00:00 1970 From: Libo Chen Subject: [PATCH] fs: new helper: file_inode(file) Date: Wed, 11 Dec 2013 14:07:15 +0800 Message-ID: <52A80113.7060506@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Cc: , LKML , "Li Zefan" , To: , Return-path: Received: from szxga02-in.huawei.com ([119.145.14.65]:39422 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750791Ab3LKGIZ (ORCPT ); Wed, 11 Dec 2013 01:08:25 -0500 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Signed-off-by: Libo Chen --- include/linux/fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/fs.h b/include/linux/fs.h index 121f11f..a146e2a 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -2780,7 +2780,7 @@ static inline bool dir_emit(struct dir_context *ctx, static inline bool dir_emit_dot(struct file *file, struct dir_context *ctx) { return ctx->actor(ctx, ".", 1, ctx->pos, - file->f_path.dentry->d_inode->i_ino, DT_DIR) == 0; + file_inode(file)->i_ino, DT_DIR) == 0; } static inline bool dir_emit_dotdot(struct file *file, struct dir_context *ctx) { -- 1.8.2.2