From patchwork Tue May 8 18:04:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Fasheh X-Patchwork-Id: 10386955 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 3D9F66053E 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 190C029122 for ; Tue, 8 May 2018 18:13:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1759E29195; Tue, 8 May 2018 18:13:04 +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 76314291CD for ; Tue, 8 May 2018 18:12:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755879AbeEHSMD (ORCPT ); Tue, 8 May 2018 14:12:03 -0400 Received: from mx2.suse.de ([195.135.220.15]:54243 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755835AbeEHSGP (ORCPT ); Tue, 8 May 2018 14:06:15 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 09420AE08; Tue, 8 May 2018 18:06:14 +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 60/76] fs/qnx4: Use inode_sb() helper instead of inode->i_sb Date: Tue, 8 May 2018 11:04:20 -0700 Message-Id: <20180508180436.716-61-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-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Mark Fasheh --- fs/qnx4/dir.c | 2 +- fs/qnx4/inode.c | 4 ++-- fs/qnx4/namei.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/qnx4/dir.c b/fs/qnx4/dir.c index a6ee23aadd28..c0e764ce79dd 100644 --- a/fs/qnx4/dir.c +++ b/fs/qnx4/dir.c @@ -31,7 +31,7 @@ static int qnx4_readdir(struct file *file, struct dir_context *ctx) while (ctx->pos < inode->i_size) { blknum = qnx4_block_map(inode, ctx->pos >> QNX4_BLOCK_SIZE_BITS); - bh = sb_bread(inode->i_sb, blknum); + bh = sb_bread(inode_sb(inode), blknum); if (bh == NULL) { printk(KERN_ERR "qnx4_readdir: bread failed (%ld)\n", blknum); return 0; diff --git a/fs/qnx4/inode.c b/fs/qnx4/inode.c index 3d46fe302fcb..2b5e5b18e084 100644 --- a/fs/qnx4/inode.c +++ b/fs/qnx4/inode.c @@ -60,7 +60,7 @@ static int qnx4_get_block( struct inode *inode, sector_t iblock, struct buffer_h phys = qnx4_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; } @@ -94,7 +94,7 @@ unsigned long qnx4_block_map( struct inode *inode, long iblock ) while ( --nxtnt > 0 ) { if ( ix == 0 ) { // read next xtnt block. - bh = sb_bread(inode->i_sb, i_xblk - 1); + bh = sb_bread(inode_sb(inode), i_xblk - 1); if ( !bh ) { QNX4DEBUG((KERN_ERR "qnx4: I/O error reading xtnt block [%ld])\n", i_xblk - 1)); return -EIO; diff --git a/fs/qnx4/namei.c b/fs/qnx4/namei.c index eca27878079d..3a84a8f6c6a7 100644 --- a/fs/qnx4/namei.c +++ b/fs/qnx4/namei.c @@ -67,7 +67,7 @@ static struct buffer_head *qnx4_find_entry(int len, struct inode *dir, if (!bh) { block = qnx4_block_map(dir, blkofs); if (block) - bh = sb_bread(dir->i_sb, block); + bh = sb_bread(inode_sb(dir), block); if (!bh) { blkofs++; continue; @@ -113,7 +113,7 @@ struct dentry * qnx4_lookup(struct inode *dir, struct dentry *dentry, unsigned i } brelse(bh); - foundinode = qnx4_iget(dir->i_sb, ino); + foundinode = qnx4_iget(inode_sb(dir), ino); if (IS_ERR(foundinode)) { QNX4DEBUG((KERN_ERR "qnx4: lookup->iget -> error %ld\n", PTR_ERR(foundinode)));