From 7f5cdb34abfdb3d420ed167b0a1bf8a83322d36f Mon Sep 17 00:00:00 2001 From: Roel Kluin Date: Mon, 10 Aug 2009 22:47:22 -0400 Subject: [PATCH] --- yaml --- r: 163638 b: refs/heads/master c: c333e073b7bf76dc819a6b4ce6bef88ee5fa5e50 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/ext4/inode.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index b4d4e7c3ab3f..ec3b6bc941d5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 785b4b3a5a992eeb8b495a89b6f690b383010aba +refs/heads/master: c333e073b7bf76dc819a6b4ce6bef88ee5fa5e50 diff --git a/trunk/fs/ext4/inode.c b/trunk/fs/ext4/inode.c index deb14a728791..9a4c929b16dc 100644 --- a/trunk/fs/ext4/inode.c +++ b/trunk/fs/ext4/inode.c @@ -341,9 +341,7 @@ static int ext4_block_to_path(struct inode *inode, int n = 0; int final = 0; - if (i_block < 0) { - ext4_warning(inode->i_sb, "ext4_block_to_path", "block < 0"); - } else if (i_block < direct_blocks) { + if (i_block < direct_blocks) { offsets[n++] = i_block; final = direct_blocks; } else if ((i_block -= direct_blocks) < indirect_blocks) {