All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Whitehouse <swhiteho@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH 3/3] gfs2_edit: Some comment cleanups
Date: Tue, 28 Aug 2012 18:35:04 +0100	[thread overview]
Message-ID: <1346175304.2692.18.camel@menhir> (raw)
In-Reply-To: <1346168181-7603-3-git-send-email-anprice@redhat.com>

Hi,

Those three all look ok to me,

Steve.

On Tue, 2012-08-28 at 16:36 +0100, Andrew Price wrote:
> Remove some empty function comments to make things a bit more readable.
> 
> Signed-off-by: Andrew Price <anprice@redhat.com>
> ---
>  gfs2/edit/extended.c | 45 ----------------------------------
>  gfs2/edit/gfs2hex.c  | 68 +++-------------------------------------------------
>  gfs2/edit/hexedit.c  | 10 --------
>  3 files changed, 3 insertions(+), 120 deletions(-)
> 
> diff --git a/gfs2/edit/extended.c b/gfs2/edit/extended.c
> index e2567a5..17372ae 100644
> --- a/gfs2/edit/extended.c
> +++ b/gfs2/edit/extended.c
> @@ -30,9 +30,6 @@
>  static void print_block_details(struct iinfo *ind, int level, int cur_height,
>  				int pndx, uint64_t file_offset);
>  
> -/* ------------------------------------------------------------------------ */
> -/* get_height                                                               */
> -/* ------------------------------------------------------------------------ */
>  static int get_height(void)
>  {
>  	int cur_height = 0, i;
> @@ -49,9 +46,6 @@ static int get_height(void)
>  	return cur_height;
>  }
>  
> -/* ------------------------------------------------------------------------ */
> -/* _do_indirect_extended                                                    */
> -/* ------------------------------------------------------------------------ */
>  static int _do_indirect_extended(char *diebuf, struct iinfo *iinf, int hgt)
>  {
>  	unsigned int x, y;
> @@ -81,9 +75,6 @@ static int _do_indirect_extended(char *diebuf, struct iinfo *iinf, int hgt)
>  	return i_blocks;
>  }
>  
> -/* ------------------------------------------------------------------------ */
> -/* do_indirect_extended                                                     */
> -/* ------------------------------------------------------------------------ */
>  int do_indirect_extended(char *diebuf, struct iinfo *iinf)
>  {
>  	return _do_indirect_extended(diebuf, iinf, get_height());
> @@ -107,9 +98,6 @@ static int dinode_valid(void)
>  	return 0;
>  }
>  
> -/* ------------------------------------------------------------------------ */
> -/* metapath_to_lblock - convert from metapath, height to logical block      */
> -/* ------------------------------------------------------------------------ */
>  static uint64_t metapath_to_lblock(struct metapath *mp, int hgt)
>  {
>  	int h;
> @@ -128,9 +116,6 @@ static uint64_t metapath_to_lblock(struct metapath *mp, int hgt)
>  	return lblock;
>  }
>  
> -/* ------------------------------------------------------------------------ */
> -/* display_indirect                                                         */
> -/* ------------------------------------------------------------------------ */
>  static int display_indirect(struct iinfo *ind, int indblocks, int level,
>  			    uint64_t startoff)
>  {
> @@ -246,9 +231,6 @@ static int display_indirect(struct iinfo *ind, int indblocks, int level,
>  	return 0;
>  }
>  
> -/* ------------------------------------------------------------------------ */
> -/* print_inode_type                                                         */
> -/* ------------------------------------------------------------------------ */
>  static void print_inode_type(__be16 de_type)
>  {
>  	if (sbd.gfs1) {
> @@ -314,9 +296,6 @@ static void print_inode_type(__be16 de_type)
>  	}
>  }
>  
> -/* ------------------------------------------------------------------------ */
> -/* display_leaf - display directory leaf                                    */
> -/* ------------------------------------------------------------------------ */
>  static int display_leaf(struct iinfo *ind)
>  {
>  	int start_line, total_dirents = start_row[dmode];
> @@ -374,9 +353,6 @@ static int display_leaf(struct iinfo *ind)
>  	return 0;
>  }
>  
> -/* ------------------------------------------------------------------------ */
> -/* print_block_details                                                      */
> -/* ------------------------------------------------------------------------ */
>  static void print_block_details(struct iinfo *ind, int level, int cur_height,
>  				int pndx, uint64_t file_offset)
>  {
> @@ -441,9 +417,6 @@ static void print_block_details(struct iinfo *ind, int level, int cur_height,
>  	free(more_indir);
>  }
>  
> -/* ------------------------------------------------------------------------ */
> -/* gfs_jindex_print - print an jindex entry.                                */
> -/* ------------------------------------------------------------------------ */
>  static void gfs_jindex_print(struct gfs_jindex *ji)
>  {
>          pv((unsigned long long)ji, ji_addr, "%llu", "0x%llx");
> @@ -451,9 +424,6 @@ static void gfs_jindex_print(struct gfs_jindex *ji)
>          pv(ji, ji_pad, "%u", "0x%x");
>  }
>  
> -/* ------------------------------------------------------------------------ */
> -/* print_jindex - print the jindex file.                                    */
> -/* ------------------------------------------------------------------------ */
>  static int print_jindex(struct gfs2_inode *dij)
>  {
>  	int error, start_line;
> @@ -494,9 +464,6 @@ static int print_jindex(struct gfs2_inode *dij)
>  	return error;
>  }
>  
> -/* ------------------------------------------------------------------------ */
> -/* parse_rindex - print the rgindex file.                                   */
> -/* ------------------------------------------------------------------------ */
>  static int parse_rindex(struct gfs2_inode *dip, int print_rindex)
>  {
>  	int error, start_line;
> @@ -562,9 +529,6 @@ static int parse_rindex(struct gfs2_inode *dip, int print_rindex)
>  	return error;
>  }
>  
> -/* ------------------------------------------------------------------------ */
> -/* print_inum - print the inum file.                                        */
> -/* ------------------------------------------------------------------------ */
>  static int print_inum(struct gfs2_inode *dii)
>  {
>  	uint64_t inum, inodenum;
> @@ -587,9 +551,6 @@ static int print_inum(struct gfs2_inode *dii)
>  	return 0;
>  }
>  
> -/* ------------------------------------------------------------------------ */
> -/* print_statfs - print the statfs file.                                    */
> -/* ------------------------------------------------------------------------ */
>  static int print_statfs(struct gfs2_inode *dis)
>  {
>  	struct gfs2_statfs_change sfb, sfc;
> @@ -613,9 +574,6 @@ static int print_statfs(struct gfs2_inode *dis)
>  	return 0;
>  }
>  
> -/* ------------------------------------------------------------------------ */
> -/* print_quota - print the quota file.                                      */
> -/* ------------------------------------------------------------------------ */
>  static int print_quota(struct gfs2_inode *diq)
>  {
>  	struct gfs2_quota qbuf, q;
> @@ -642,9 +600,6 @@ static int print_quota(struct gfs2_inode *diq)
>  	return 0;
>  }
>  
> -/* ------------------------------------------------------------------------ */
> -/* display_extended                                                         */
> -/* ------------------------------------------------------------------------ */
>  int display_extended(void)
>  {
>  	struct gfs2_inode *tmp_inode;
> diff --git a/gfs2/edit/gfs2hex.c b/gfs2/edit/gfs2hex.c
> index 41630f9..6979cd9 100644
> --- a/gfs2/edit/gfs2hex.c
> +++ b/gfs2/edit/gfs2hex.c
> @@ -19,7 +19,6 @@
>  
>  #include "extended.h"
>  #include "gfs2hex.h"
> -/* from libgfs2: */
>  #include "libgfs2.h"
>  
>  #define pv(struct, member, fmt, fmt2) do {				\
> @@ -255,21 +254,6 @@ static int indirect_dirent(struct indirect_info *indir, char *ptr, int d)
>  	return de.de_rec_len;
>  }
>  
> -/******************************************************************************
> -*******************************************************************************
> -**
> -** do_dinode_extended()
> -**
> -** Description:
> -**
> -** Input(s):
> -**
> -** Output(s):
> -**
> -** Returns:
> -**
> -*******************************************************************************
> -******************************************************************************/
>  void do_dinode_extended(struct gfs2_dinode *dine, struct gfs2_buffer_head *lbh)
>  {
>  	unsigned int x, y, ptroff = 0;
> @@ -350,21 +334,9 @@ void do_dinode_extended(struct gfs2_dinode *dine, struct gfs2_buffer_head *lbh)
>  	} /* if exhash */
>  }/* do_dinode_extended */
>  
> -/******************************************************************************
> -*******************************************************************************
> -**
> -** do_leaf_extended()
> -**
> -** Description:
> -**
> -** Input(s):
> -**
> -** Output(s):
> -**
> -** Returns: next leaf block, if any, in a chain of leaf blocks
> -**
> -*******************************************************************************
> -******************************************************************************/
> +/**
> + * Returns: next leaf block, if any, in a chain of leaf blocks
> + */
>  uint64_t do_leaf_extended(char *dlebuf, struct iinfo *indir)
>  {
>  	int x, i;
> @@ -403,23 +375,6 @@ uint64_t do_leaf_extended(char *dlebuf, struct iinfo *indir)
>  	return leaf.lf_next;
>  }
>  
> -
> -/******************************************************************************
> -*******************************************************************************
> -**
> -** do_eattr_extended()
> -**
> -** Description:
> -**
> -** Input(s):
> -**
> -** Output(s):
> -**
> -** Returns:
> -**
> -*******************************************************************************
> -******************************************************************************/
> -
>  static void do_eattr_extended(struct gfs2_buffer_head *ebh)
>  {
>  	struct gfs2_ea_header ea;
> @@ -524,23 +479,6 @@ static void gfs1_rgrp_print(struct gfs1_rgrp *rg)
>          pv(rg, rg_freemeta, "%u", "0x%x");
>  }
>  
> -/******************************************************************************
> -*******************************************************************************
> -**
> -** int display_gfs2()
> -**
> -** Description:
> -**   This routine...
> -**
> -** Input(s):
> -**  *buffer   - 
> -**   extended - 
> -**
> -** Returns:
> -**   0 if OK, 1 on error.
> -**
> -*******************************************************************************
> -******************************************************************************/
>  int display_gfs2(void)
>  {
>  	struct gfs2_meta_header mh;
> diff --git a/gfs2/edit/hexedit.c b/gfs2/edit/hexedit.c
> index 79082b8..ff0dca9 100644
> --- a/gfs2/edit/hexedit.c
> +++ b/gfs2/edit/hexedit.c
> @@ -3101,16 +3101,6 @@ static void process_parameters(int argc, char *argv[], int pass)
>  	} /* for */
>  }/* process_parameters */
>  
> -/******************************************************************************
> -*******************************************************************************
> -**
> -** main()
> -**
> -** Description:
> -**   Do everything
> -**
> -*******************************************************************************
> -******************************************************************************/
>  int main(int argc, char *argv[])
>  {
>  	int i, j, fd;




  reply	other threads:[~2012-08-28 17:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-28 15:36 [Cluster-devel] [PATCH 1/3] libgfs2: Remove exit calls from inode_read and inode_get Andrew Price
2012-08-28 15:36 ` [Cluster-devel] [PATCH 2/3] libgfs2: Remove exit call from __gfs_inode_get Andrew Price
2012-08-28 15:36 ` [Cluster-devel] [PATCH 3/3] gfs2_edit: Some comment cleanups Andrew Price
2012-08-28 17:35   ` Steven Whitehouse [this message]
2012-08-28 17:50   ` Bob Peterson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1346175304.2692.18.camel@menhir \
    --to=swhiteho@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.