public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ext4 : Remove redundant condition in ext4_free_blocks_sb()
@ 2008-05-31 18:56 Manish Katiyar
  2008-06-01  6:25 ` Kari Hurtta
  0 siblings, 1 reply; 3+ messages in thread
From: Manish Katiyar @ 2008-05-31 18:56 UTC (permalink / raw)
  To: linux-ext4, linux-fsdevel, kernel-janitors

For two unsigned values the check "block+count < block"  is always
false. Thus the below patch removes that condition.

=============================================================

Signed-off-by: Manish Katiyar <mkatiyar@gmail.com>

--- a/fs/ext4/balloc.c  2008-05-18 18:07:45.000000000 +0530
+++ b/fs/ext4/balloc.c  2008-06-01 00:05:48.000000000 +0530
@@ -619,7 +619,6 @@
        sbi = EXT4_SB(sb);
        es = sbi->s_es;
        if (block < le32_to_cpu(es->s_first_data_block) ||
-           block + count < block ||
            block + count > ext4_blocks_count(es)) {
                ext4_error (sb, "ext4_free_blocks",
                            "Freeing blocks not in datazone - "


=============================================================

-- 
Thanks & Regards,
********************************************
Manish Katiyar ( http://mkatiyar.googlepages.com )
3rd Floor, Fair Winds Block
EGL Software Park
Off Intermediate Ring Road
Bangalore 560071, India
***********************************************

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

end of thread, other threads:[~2008-06-01  6:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-31 18:56 [PATCH] ext4 : Remove redundant condition in ext4_free_blocks_sb() Manish Katiyar
2008-06-01  6:25 ` Kari Hurtta
2008-06-01  6:30   ` Manish Katiyar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox