From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f181.google.com ([209.85.216.181]:34775 "EHLO mail-qt0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762627AbdEVVAR (ORCPT ); Mon, 22 May 2017 17:00:17 -0400 Received: by mail-qt0-f181.google.com with SMTP id c13so112315986qtc.1 for ; Mon, 22 May 2017 14:00:17 -0700 (PDT) From: Martin Brandenburg To: hubcap@omnibond.com, linux-fsdevel@vger.kernel.org Cc: Martin Brandenburg Subject: [PATCH 06/13] orangefs: remove mapping_nrpages macro Date: Mon, 22 May 2017 05:58:54 -0400 Message-Id: <1495447141-12216-7-git-send-email-martin@omnibond.com> In-Reply-To: <1495447141-12216-1-git-send-email-martin@omnibond.com> References: <1495447141-12216-1-git-send-email-martin@omnibond.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Signed-off-by: Martin Brandenburg --- fs/orangefs/file.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/orangefs/file.c b/fs/orangefs/file.c index 9e0d334..0de41a3 100644 --- a/fs/orangefs/file.c +++ b/fs/orangefs/file.c @@ -599,8 +599,6 @@ static int orangefs_file_mmap(struct file *file, struct vm_area_struct *vma) return generic_file_readonly_mmap(file, vma); } -#define mapping_nrpages(idata) ((idata)->nrpages) - /* * Called to notify the module that there are no more references to * this file (i.e. no processes have it open). @@ -622,7 +620,7 @@ static int orangefs_file_release(struct inode *inode, struct file *file) */ if (file_inode(file) && file_inode(file)->i_mapping && - mapping_nrpages(&file_inode(file)->i_data)) { + file_inode(file)->i_mapping->nrpages) { if (orangefs_features & ORANGEFS_FEATURE_READAHEAD) { gossip_debug(GOSSIP_INODE_DEBUG, "calling flush_racache on %pU\n", -- 2.1.4