Skip to contentSkip to conversation

fs: new helper: file_inode(file)

PATCH New Libo Chen 1 participant 1 message Dec 11, 2013 VFS

lore
Share & tools
lore

Libo Chen

author
#0 lore raw

PATCH 1/1 fs: new helper: file_inode(file)

---
 include/linux/fs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/fs.h +1 -1
index 121f11f..a146e2a 100644
@@ -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)
 {
Signature · 1 line
1.8.2.2