lkml.org 
[lkml]   [2013]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subjectfile_inode() vs f_mapping->host
From
Hi all,

in this thread ( https://lkml.org/lkml/2013/3/17/128 ), Al Viro argues
that file_inode() is not equal to f_mapping->host in certain cases.

I'm asking, because in arch/x86/kernel/msr.c, msr_seek() retrieves the
inode via f_mapping while one function later, msr_read() uses
file_inode().
Is this on purpose?

In general, how do I distinguish when to use what?

Thanks in advance,
Andre


\
 
 \ /
  Last update: 2013-10-07 13:41    [W:0.027 / U:0.560 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site