mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/1] arch/x86/kernel/msr.c: Add another file_inode()
@ 2013-10-08  9:22 Andre Richter
  2013-10-08 19:03 ` [tip:x86/cleanups] x86, msr: Use file_inode(), not f_mapping-> host tip-bot for Andre Richter
  0 siblings, 1 reply; 2+ messages in thread
From: Andre Richter @ 2013-10-08  9:22 UTC (permalink / raw)
  To: H. Peter Anvin, Thomas Gleixner, Ingo Molnar
  Cc: x86, linux-kernel, Andre Richter

As discussed in [1], exchange f_mapping->host with file_inode().

[1] https://lkml.org/lkml/2013/10/7/499

Signed-off-by: Andre Richter <andre.o.richter@gmail.com>
---
 arch/x86/kernel/msr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/msr.c b/arch/x86/kernel/msr.c
index 88458fa..05266b5 100644
--- a/arch/x86/kernel/msr.c
+++ b/arch/x86/kernel/msr.c
@@ -46,7 +46,7 @@ static struct class *msr_class;
 static loff_t msr_seek(struct file *file, loff_t offset, int orig)
 {
 	loff_t ret;
-	struct inode *inode = file->f_mapping->host;
+	struct inode *inode = file_inode(file);
 
 	mutex_lock(&inode->i_mutex);
 	switch (orig) {
-- 
1.8.1.2


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

end of thread, other threads:[~2013-10-08 19:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-08  9:22 [PATCH 1/1] arch/x86/kernel/msr.c: Add another file_inode() Andre Richter
2013-10-08 19:03 ` [tip:x86/cleanups] x86, msr: Use file_inode(), not f_mapping-> host tip-bot for Andre Richter

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

Powered by JetHome