cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH 00/23] gfs2_edit: Code cleanups
@ 2016-02-04 11:20 Andrew Price
  2016-02-04 11:20 ` [Cluster-devel] [PATCH 01/23] gfs2_edit: Don't use the global block variable in block_is_a_journal Andrew Price
                   ` (22 more replies)
  0 siblings, 23 replies; 24+ messages in thread
From: Andrew Price @ 2016-02-04 11:20 UTC (permalink / raw)
  To: cluster-devel.redhat.com

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



^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2016-02-04 11:20 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-04 11:20 [Cluster-devel] [PATCH 00/23] gfs2_edit: Code cleanups Andrew Price
2016-02-04 11:20 ` [Cluster-devel] [PATCH 01/23] gfs2_edit: Don't use the global block variable in block_is_a_journal Andrew Price
2016-02-04 11:20 ` [Cluster-devel] [PATCH 02/23] gfs2_edit: Don't use the global block variable in block_is_in_per_node Andrew Price
2016-02-04 11:20 ` [Cluster-devel] [PATCH 03/23] gfs2_edit: Don't use the global block variable in block_is_jindex Andrew Price
2016-02-04 11:20 ` [Cluster-devel] [PATCH 04/23] gfs2_edit: Don't use the global block variable in block_is_inum_file Andrew Price
2016-02-04 11:20 ` [Cluster-devel] [PATCH 05/23] gfs2_edit: Don't use global block variable in block_is_statfs_file Andrew Price
2016-02-04 11:20 ` [Cluster-devel] [PATCH 06/23] gfs2_edit: Don't use global block variable in block_is_quota_file Andrew Price
2016-02-04 11:20 ` [Cluster-devel] [PATCH 07/23] gfs2_edit: Don't use global block variable in block_is_rindex Andrew Price
2016-02-04 11:20 ` [Cluster-devel] [PATCH 08/23] gfs2_edit: Don't use the global block variable in block_is_per_node Andrew Price
2016-02-04 11:20 ` [Cluster-devel] [PATCH 09/23] gfs2_edit: Don't use the global block variable in block_is_systemfile Andrew Price
2016-02-04 11:20 ` [Cluster-devel] [PATCH 10/23] gfs2_edit: Don't use the global block variable in block_is_rgtree Andrew Price
2016-02-04 11:20 ` [Cluster-devel] [PATCH 11/23] gfs2_edit: Don't use the global block variable in block_is_journals Andrew Price
2016-02-04 11:20 ` [Cluster-devel] [PATCH 12/23] gfs2_edit: Only declare the block variable where needed Andrew Price
2016-02-04 11:20 ` [Cluster-devel] [PATCH 13/23] gfs2_edit: Don't use the global block variable in save_block Andrew Price
2016-02-04 11:20 ` [Cluster-devel] [PATCH 14/23] gfs2_edit: Don't use the global block variable in save_indirect_blocks Andrew Price
2016-02-04 11:20 ` [Cluster-devel] [PATCH 15/23] gfs2_edit: Don't use the global block variable in save_inode_data Andrew Price
2016-02-04 11:20 ` [Cluster-devel] [PATCH 16/23] gfs2_edit: Don't use the global block variable in get_gfs_struct_info Andrew Price
2016-02-04 11:20 ` [Cluster-devel] [PATCH 17/23] gfs2_edit: Don't use the global block variable in save_ea_block Andrew Price
2016-02-04 11:20 ` [Cluster-devel] [PATCH 18/23] gfs2_edit: Don't use the global block variable in save_allocated Andrew Price
2016-02-04 11:20 ` [Cluster-devel] [PATCH 19/23] gfs2_edit: Don't use the global block variable in savemeta Andrew Price
2016-02-04 11:20 ` [Cluster-devel] [PATCH 20/23] gfs2_edit: Don't use the global bh variable in display_block_type Andrew Price
2016-02-04 11:20 ` [Cluster-devel] [PATCH 21/23] gfs2_edit: Don't use the global block variable in savemeta.c Andrew Price
2016-02-04 11:20 ` [Cluster-devel] [PATCH 22/23] gfs2_edit: Don't export bh Andrew Price
2016-02-04 11:20 ` [Cluster-devel] [PATCH 23/23] gfs2_edit: Remove block_in_mem and fix a memory leak Andrew Price

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).