From patchwork Wed May 31 08:15:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tahsin Erdogan X-Patchwork-Id: 9756205 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 34EE4602CC for ; Wed, 31 May 2017 08:22:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 26466265B9 for ; Wed, 31 May 2017 08:22:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1AD27284A6; Wed, 31 May 2017 08:22:59 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM 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 C43F3265B9 for ; Wed, 31 May 2017 08:22:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751456AbdEaIR3 (ORCPT ); Wed, 31 May 2017 04:17:29 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:34837 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751444AbdEaIR0 (ORCPT ); Wed, 31 May 2017 04:17:26 -0400 Received: by mail-pf0-f176.google.com with SMTP id n23so7046298pfb.2 for ; Wed, 31 May 2017 01:17:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yju8xEl1J2Kk4cuIuPkyDNK35rDK+fPjqvKnXji9LFU=; b=iOTR96WAwM2M7TV6fogfYDhtIKToTyb7dT65/RMzT+9KbH9zsThnAaC4kh3MOYceS0 f1XW7qHYNzZshkWduMPCj0DG0/911Uwzl1XdLCl9SM0pMFt1WrJB25dif60Wh5+WoFWb MgJKLbH19r8MwCoyXqhWFRL+Bger2rwdlbbo98/PShHsF2RR5IQE9bEMGGaiSP1mO4eM wwrwvocgTJTxeqPHNcy0Jt6EzVqzPaxTvSk047ms+bCcakIhoopn/Qi6+UEWSue/tNA+ jNx+PoCdkBM00aDOrUzOeZ6gwtlMErfQzQCxF/r0/0OlZ9jZ2LK+wlNA2Nmd+ikb6L// dz9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yju8xEl1J2Kk4cuIuPkyDNK35rDK+fPjqvKnXji9LFU=; b=WTQ/1l/vO1L3rriXCOZku5ejYw8GIC4hwUfReNcZcDXPg4CWTAmDSiTx2dOTovwqYU bVNpursIJyjDvy9fPd+q+G9WNXyjJokVss8kR+DU/4ELtvJLtFrdpUhJfW8iIAaeDMHQ Ei7OaPxrdHjuJKpiivGUoLAz0xOK2nMqH8MRGh00R9kGDbBXiGjqw5dTrL303V3sZQjE 6l9Vd5yuPPOdu0Zy9sxVNGbCnon4Phks19YCnt12Tdt6gZUkSPsO4M6SO/KIJpFekLlz vfI5g6D9IBA1W9oYLPmfAopPYwxvZgNFgFK4iYFogv6dVkXw7HKcM9yZqTUcepkB7ek7 oRNQ== X-Gm-Message-State: AODbwcBEJjhYkAagRqlgavvYtlOYu/6l/lXElejbz0dKaDVW/Yx34UDI vuLuLmzQwxZGkEkk X-Received: by 10.99.250.69 with SMTP id g5mr30729323pgk.11.1496218640237; Wed, 31 May 2017 01:17:20 -0700 (PDT) Received: from tahsin1.svl.corp.google.com ([100.123.230.167]) by smtp.gmail.com with ESMTPSA id g75sm25469724pfd.83.2017.05.31.01.17.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 May 2017 01:17:19 -0700 (PDT) From: Tahsin Erdogan To: Jan Kara , Theodore Ts'o , Andreas Dilger , Dave Kleikamp , Alexander Viro , Mark Fasheh , Joel Becker , Jens Axboe , Deepa Dinamani , Mike Christie , Fabian Frederick , linux-ext4@vger.kernel.org Cc: linux-kernel@vger.kernel.org, jfs-discussion@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, ocfs2-devel@oss.oracle.com, reiserfs-devel@vger.kernel.org, Tahsin Erdogan Subject: [PATCH 22/28] ext4: move struct ext4_xattr_inode_array to xattr.h Date: Wed, 31 May 2017 01:15:11 -0700 Message-Id: <20170531081517.11438-22-tahsin@google.com> X-Mailer: git-send-email 2.13.0.219.gdb65acc882-goog In-Reply-To: <20170531081517.11438-1-tahsin@google.com> References: <20170531081517.11438-1-tahsin@google.com> 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 Since this is a xattr specific data structure it is cleaner to keep it in xattr header file. Signed-off-by: Tahsin Erdogan --- fs/ext4/ext4.h | 4 ---- fs/ext4/xattr.h | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 603edb5ff304..580fdb753f29 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -2232,10 +2232,6 @@ struct mmpd_data { # define ATTRIB_NORET __attribute__((noreturn)) # define NORET_AND noreturn, -struct ext4_xattr_inode_array { - unsigned int count; /* # of used items in the array */ - struct inode *inodes[0]; -}; /* bitmap.c */ extern unsigned int ext4_count_free(char *bitmap, unsigned numchars); void ext4_inode_bitmap_csum_set(struct super_block *sb, ext4_group_t group, diff --git a/fs/ext4/xattr.h b/fs/ext4/xattr.h index 323eba54f72f..adf761518a73 100644 --- a/fs/ext4/xattr.h +++ b/fs/ext4/xattr.h @@ -117,6 +117,11 @@ struct ext4_xattr_ibody_find { struct ext4_iloc iloc; }; +struct ext4_xattr_inode_array { + unsigned int count; /* # of used items in the array */ + struct inode *inodes[0]; +}; + extern const struct xattr_handler ext4_xattr_user_handler; extern const struct xattr_handler ext4_xattr_trusted_handler; extern const struct xattr_handler ext4_xattr_security_handler;