mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andre Richter <andre.o.richter@gmail.com>
To: "H. Peter Anvin" <hpa@zytor.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>
Cc: x86@kernel.org, linux-kernel@vger.kernel.org,
	Andre Richter <andre.o.richter@gmail.com>
Subject: [PATCH 1/1] arch/x86/kernel/msr.c: Add another file_inode()
Date: Tue,  8 Oct 2013 11:22:22 +0200	[thread overview]
Message-ID: <1381224142-3267-1-git-send-email-andre.o.richter@gmail.com> (raw)

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


             reply	other threads:[~2013-10-08  9:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-08  9:22 Andre Richter [this message]
2013-10-08 19:03 ` [tip:x86/cleanups] x86, msr: Use file_inode(), not f_mapping-> host tip-bot for Andre Richter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1381224142-3267-1-git-send-email-andre.o.richter@gmail.com \
    --to=andre.o.richter@gmail.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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