From patchwork Tue May 8 18:04:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Fasheh X-Patchwork-Id: 10386953 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2D54C602C2 for ; Tue, 8 May 2018 18:13:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 089192856F for ; Tue, 8 May 2018 18:13:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EED2A29122; Tue, 8 May 2018 18:13:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D48EB29232 for ; Tue, 8 May 2018 18:11:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755859AbeEHSGS (ORCPT ); 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-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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",