From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752572AbdLLSe7 (ORCPT ); Tue, 12 Dec 2017 13:34:59 -0500 Received: from mail-yb0-f195.google.com ([209.85.213.195]:41966 "EHLO mail-yb0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752506AbdLLSex (ORCPT ); Tue, 12 Dec 2017 13:34:53 -0500 X-Google-Smtp-Source: ACJfBosrOCf4DBK0sriJj5cQS4Mtrx/VjtH1dWMrGXgfv1YAPjjaNHFo8ihQOCKt4w8kUpZSJpqzHA== From: Martin Brandenburg X-Google-Original-From: Martin Brandenburg To: hubcap@omnibond.com, devel@lists.orangefs.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Martin Brandenburg Subject: [PATCH 09/18] orangefs: only set a_ops for regular files Date: Tue, 12 Dec 2017 13:34:15 -0500 Message-Id: <20171212183424.26406-10-martin@martinbrandenburg.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171212183424.26406-1-martin@martinbrandenburg.com> References: <20171212183424.26406-1-martin@martinbrandenburg.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Martin Brandenburg Signed-off-by: Martin Brandenburg --- fs/orangefs/inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/orangefs/inode.c b/fs/orangefs/inode.c index 5c451e245cf7..cf6924c36a22 100644 --- a/fs/orangefs/inode.c +++ b/fs/orangefs/inode.c @@ -187,12 +187,11 @@ const struct inode_operations orangefs_file_inode_operations = { static int orangefs_init_iops(struct inode *inode) { - inode->i_mapping->a_ops = &orangefs_address_operations; - switch (inode->i_mode & S_IFMT) { case S_IFREG: inode->i_op = &orangefs_file_inode_operations; inode->i_fop = &orangefs_file_operations; + inode->i_data.a_ops = &orangefs_address_operations; inode->i_blkbits = PAGE_SHIFT; break; case S_IFLNK: -- 2.15.1