All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 5/6] [64-bit] (blk_t) cast in ext2fs_new_block2()
@ 2009-05-01  8:47 Nick Dokos
  2009-05-04  6:21 ` Valerie Aurora
  0 siblings, 1 reply; 2+ messages in thread
From: Nick Dokos @ 2009-05-01  8:47 UTC (permalink / raw)
  To: linux-ext4; +Cc: nicholas.dokos, Theodore Ts'o, Valerie Aurora

Found by code inspection after similar gratuitous cast in
ext2fs_get_free_blocks2() (first patch in this series).

Signed-off-by: Nick Dokos <nicholas.dokos@hp.com>
---
 lib/ext2fs/alloc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/ext2fs/alloc.c b/lib/ext2fs/alloc.c
index 9f11673..a7c8860 100644
--- a/lib/ext2fs/alloc.c
+++ b/lib/ext2fs/alloc.c
@@ -170,7 +170,7 @@ errcode_t ext2fs_new_block2(ext2_filsys fs, blk64_t goal,
 					   (i - fs->super->s_first_data_block) /
 					   EXT2_BLOCKS_PER_GROUP(fs->super));
 
-		if (!ext2fs_fast_test_block_bitmap2(map, (blk_t) i)) {
+		if (!ext2fs_fast_test_block_bitmap2(map, i)) {
 			*ret = i;
 			return 0;
 		}
-- 
1.6.0.6


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

* Re: [PATCH 5/6] [64-bit] (blk_t) cast in ext2fs_new_block2()
  2009-05-01  8:47 [PATCH 5/6] [64-bit] (blk_t) cast in ext2fs_new_block2() Nick Dokos
@ 2009-05-04  6:21 ` Valerie Aurora
  0 siblings, 0 replies; 2+ messages in thread
From: Valerie Aurora @ 2009-05-04  6:21 UTC (permalink / raw)
  To: Nick Dokos; +Cc: linux-ext4, Theodore Ts'o

On Fri, May 01, 2009 at 04:47:17AM -0400, Nick Dokos wrote:
> Found by code inspection after similar gratuitous cast in
> ext2fs_get_free_blocks2() (first patch in this series).
> 
> Signed-off-by: Nick Dokos <nicholas.dokos@hp.com>
> ---
>  lib/ext2fs/alloc.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/lib/ext2fs/alloc.c b/lib/ext2fs/alloc.c
> index 9f11673..a7c8860 100644
> --- a/lib/ext2fs/alloc.c
> +++ b/lib/ext2fs/alloc.c
> @@ -170,7 +170,7 @@ errcode_t ext2fs_new_block2(ext2_filsys fs, blk64_t goal,
>  					   (i - fs->super->s_first_data_block) /
>  					   EXT2_BLOCKS_PER_GROUP(fs->super));
>  
> -		if (!ext2fs_fast_test_block_bitmap2(map, (blk_t) i)) {
> +		if (!ext2fs_fast_test_block_bitmap2(map, i)) {
>  			*ret = i;
>  			return 0;
>  		}
> -- 
> 1.6.0.6
> 

Signed-off-by: Valerie Aurora (Henson) <vaurora@redhat.com>

-VAL

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

end of thread, other threads:[~2009-05-04  6:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-01  8:47 [PATCH 5/6] [64-bit] (blk_t) cast in ext2fs_new_block2() Nick Dokos
2009-05-04  6:21 ` Valerie Aurora

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.