lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 10 Oct 2007 11:42:43 +0200
From:	Valerie Clement <>
To:	Avantika Mathur <>
Subject: Re: [PATCH, RFC 1/3] ext4_grpnum_t: Add new type

Avantika Mathur wrote:
> Ext4: add new type ext4_grpnum_t, and change all group variables to this 
> type.
> from:
> In many places variables for block group are of type int, which limits the
> maximum filesystem size.  This patch introduces a new type
> ext4_grpnum_t, of type unsigned long, to represent block group numbers 
> in ext4.
> All occurrences of block group variables are converted to type 
> ext4_grpnum_t.

Hi avantika,
Just one little thing, you forgot to convert a variable type in balloc.c:

ext4_fsblk_t ext4_new_blocks_old(handle_t *handle, struct inode *inode,
                     ext4_fsblk_t goal, unsigned long *count, int *errp)
         struct buffer_head *bitmap_bh = NULL;
         struct buffer_head *gdp_bh;
         ext4_grpnum_t group_no;
         ext4_grpnum_t goal_group;
         ext4_grpblk_t grp_target_blk;   /* blockgroup relative goal 
block */
         ext4_grpblk_t grp_alloc_blk;    /* blockgroup-relative 
allocated block*/
         ext4_fsblk_t ret_block;         /* filesyetem-wide allocated 
block */
         int bgi;                        /* blockgroup iteration index */

Could you also remove, at the same time, the useless lines in this function:
         static int goal_hits, goal_attempts;
... and:
         ext4_debug("allocating block %lu. Goal hits %d of %d.\n",
                         ret_block, goal_hits, goal_attempts);

Just to clean up the code.

To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists