Received: by 10.192.165.148 with SMTP id m20csp4612595imm; Tue, 8 May 2018 11:12:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrDOnOuCkf9oPnKxzpdwKgeG7zTInVCaH9/cLiw+WkM0Bx+0csOEPJUrh+BAQ3Ivpe4UO2n X-Received: by 2002:a63:8f5b:: with SMTP id r27-v6mr23698379pgn.439.1525803136134; Tue, 08 May 2018 11:12:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525803136; cv=none; d=google.com; s=arc-20160816; b=g4yI1jkIGhDqAmyou02p35kZ0kHSopbwiuFcuGYQmtgkSMnqPRRgLJ22t8h41iO1ZI HkW9dyZxadpeBeyoMknToylIIfS1XgA5e0IRCntK1T54OTAg0Np37N1jYkqGdW698USB zj3jkYf/GGbbvo1Qjgw8vIF8iy4cYyLnuXeyQrjoNYCMuE5eiE+HAwOxdTMzSNKNGuME CBRpWI1HlnUQ8vktGtlZVUUhE4GIImUWViF/ByoOksjn260hUx7uBhKrh1rDnjuQ+DMT SBr2wX0fVJU4LY7ZHyLt0896NQbyQu3CEcayD4VYvxkX2/j9QH56SXkwrvgcpNeqUGtA nXNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=F+7iKojiLrD23am/2BgwIPj1Y1AMYkudZblDPy0ABXo=; b=Q7I7ONU/n+GnFG5S7Mulb8D1x1/KsA7W1YmnyyNA7hxKSjN0HNDrtAs2o33g9LCOjF 8aYb27yk1ePVa30oi2Ic7ZKshpZqZiIF2TubkWE5qHG5C6rGzpOdzlDqb64rn6clNdLG uMYAvD43zlX+99LTsyq/n0oVulrqGFIHgqbtkdmbqDjUwcI1greHyKIdlbyF79lYkGE1 XG4JoJP+oWry59XUBn+Wz8tjbO+nEFKSBYGYuqZbZGn3/OpEE+ckkuzknN7ABY2uFs7G NLMwcLRUYV2GHU1NwJ4QfbIcvmYRHY2pwrrTa5ND0MjaerHP4EmDvi3AoW2ZPxbKaKNa JMPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c74si10437732pfc.224.2018.05.08.11.12.01; Tue, 08 May 2018 11:12:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932820AbeEHSGS (ORCPT + 99 others); Tue, 8 May 2018 14:06:18 -0400 Received: from mx2.suse.de ([195.135.220.15]:54041 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755842AbeEHSGQ (ORCPT ); Tue, 8 May 2018 14:06:16 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 70674AD4A; Tue, 8 May 2018 18:06:15 +0000 (UTC) From: Mark Fasheh To: linux-fsdevel@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-btrfs@vger.kernel.org, Mark Fasheh Subject: [PATCH 61/76] fs/qnx6: Use inode_sb() helper instead of inode->i_sb Date: Tue, 8 May 2018 11:04:21 -0700 Message-Id: <20180508180436.716-62-mfasheh@suse.de> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180508180436.716-1-mfasheh@suse.de> References: <20180508180436.716-1-mfasheh@suse.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Mark Fasheh --- fs/qnx6/dir.c | 8 ++++---- fs/qnx6/inode.c | 4 ++-- fs/qnx6/namei.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/fs/qnx6/dir.c b/fs/qnx6/dir.c index c1cfb8a19e9d..655d0eb9d82a 100644 --- a/fs/qnx6/dir.c +++ b/fs/qnx6/dir.c @@ -65,7 +65,7 @@ static int qnx6_dir_longfilename(struct inode *inode, unsigned de_inode) { struct qnx6_long_filename *lf; - struct super_block *s = inode->i_sb; + struct super_block *s = inode_sb(inode); struct qnx6_sb_info *sbi = QNX6_SB(s); struct page *page; int lf_size; @@ -112,7 +112,7 @@ static int qnx6_dir_longfilename(struct inode *inode, static int qnx6_readdir(struct file *file, struct dir_context *ctx) { struct inode *inode = file_inode(file); - struct super_block *s = inode->i_sb; + struct super_block *s = inode_sb(inode); struct qnx6_sb_info *sbi = QNX6_SB(s); loff_t pos = ctx->pos & ~(QNX6_DIR_ENTRY_SIZE - 1); unsigned long npages = dir_pages(inode); @@ -175,7 +175,7 @@ static int qnx6_readdir(struct file *file, struct dir_context *ctx) static unsigned qnx6_long_match(int len, const char *name, struct qnx6_long_dir_entry *de, struct inode *dir) { - struct super_block *s = dir->i_sb; + struct super_block *s = inode_sb(dir); struct qnx6_sb_info *sbi = QNX6_SB(s); struct page *page; int thislen; @@ -213,7 +213,7 @@ static unsigned qnx6_match(struct super_block *s, int len, const char *name, unsigned qnx6_find_entry(int len, struct inode *dir, const char *name, struct page **res_page) { - struct super_block *s = dir->i_sb; + struct super_block *s = inode_sb(dir); struct qnx6_inode_info *ei = QNX6_I(dir); struct page *page = NULL; unsigned long start, n; diff --git a/fs/qnx6/inode.c b/fs/qnx6/inode.c index 4aeb26bcb4d0..4be77b89f11d 100644 --- a/fs/qnx6/inode.c +++ b/fs/qnx6/inode.c @@ -79,7 +79,7 @@ static int qnx6_get_block(struct inode *inode, sector_t iblock, phys = qnx6_block_map(inode, iblock); if (phys) { /* logical block is before EOF */ - map_bh(bh, inode->i_sb, phys); + map_bh(bh, inode_sb(inode), phys); } return 0; } @@ -110,7 +110,7 @@ static int qnx6_readpages(struct file *file, struct address_space *mapping, */ static unsigned qnx6_block_map(struct inode *inode, unsigned no) { - struct super_block *s = inode->i_sb; + struct super_block *s = inode_sb(inode); struct qnx6_sb_info *sbi = QNX6_SB(s); struct qnx6_inode_info *ei = QNX6_I(inode); unsigned block = 0; diff --git a/fs/qnx6/namei.c b/fs/qnx6/namei.c index 72c2770830be..0b1a626c20d8 100644 --- a/fs/qnx6/namei.c +++ b/fs/qnx6/namei.c @@ -27,7 +27,7 @@ struct dentry *qnx6_lookup(struct inode *dir, struct dentry *dentry, ino = qnx6_find_entry(len, dir, name, &page); if (ino) { - foundinode = qnx6_iget(dir->i_sb, ino); + foundinode = qnx6_iget(inode_sb(dir), ino); qnx6_put_page(page); if (IS_ERR(foundinode)) { pr_debug("lookup->iget -> error %ld\n", -- 2.15.1