From: Andrew Price Date: Thu, 4 Feb 2016 11:20:11 +0000 Subject: [Cluster-devel] [PATCH 00/23] gfs2_edit: Code cleanups Message-ID: <1454584834-32412-1-git-send-email-anprice@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit This patch set removes some uses of global variables, mainly in savemeta.c, so that the code is easier to reason about and less fragile to changes. There are a bunch of patches here as the changes had to be done in reverse call chain order, but they're mostly small and simple. Andrew Price (23): gfs2_edit: Don't use the global block variable in block_is_a_journal gfs2_edit: Don't use the global block variable in block_is_in_per_node gfs2_edit: Don't use the global block variable in block_is_jindex gfs2_edit: Don't use the global block variable in block_is_inum_file gfs2_edit: Don't use global block variable in block_is_statfs_file gfs2_edit: Don't use global block variable in block_is_quota_file gfs2_edit: Don't use global block variable in block_is_rindex gfs2_edit: Don't use the global block variable in block_is_per_node gfs2_edit: Don't use the global block variable in block_is_systemfile gfs2_edit: Don't use the global block variable in block_is_rgtree gfs2_edit: Don't use the global block variable in block_is_journals gfs2_edit: Only declare the block variable where needed gfs2_edit: Don't use the global block variable in save_block gfs2_edit: Don't use the global block variable in save_indirect_blocks gfs2_edit: Don't use the global block variable in save_inode_data gfs2_edit: Don't use the global block variable in get_gfs_struct_info gfs2_edit: Don't use the global block variable in save_ea_block gfs2_edit: Don't use the global block variable in save_allocated gfs2_edit: Don't use the global block variable in savemeta gfs2_edit: Don't use the global bh variable in display_block_type gfs2_edit: Don't use the global block variable in savemeta.c gfs2_edit: Don't export bh gfs2_edit: Remove block_in_mem and fix a memory leak gfs2/edit/extended.c | 16 +++--- gfs2/edit/gfs2hex.c | 34 ++++++------- gfs2/edit/gfs2hex.h | 2 +- gfs2/edit/hexedit.c | 91 +++++++++++++-------------------- gfs2/edit/hexedit.h | 25 ++++----- gfs2/edit/journal.c | 2 + gfs2/edit/savemeta.c | 140 ++++++++++++++++++++++++++------------------------- 7 files changed, 145 insertions(+), 165 deletions(-) -- 2.4.3