diff options
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index deb14a72879..9a4c929b16d 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -341,9 +341,7 @@ static int ext4_block_to_path(struct inode *inode, | |||
341 | int n = 0; | 341 | int n = 0; |
342 | int final = 0; | 342 | int final = 0; |
343 | 343 | ||
344 | if (i_block < 0) { | 344 | if (i_block < direct_blocks) { |
345 | ext4_warning(inode->i_sb, "ext4_block_to_path", "block < 0"); | ||
346 | } else if (i_block < direct_blocks) { | ||
347 | offsets[n++] = i_block; | 345 | offsets[n++] = i_block; |
348 | final = direct_blocks; | 346 | final = direct_blocks; |
349 | } else if ((i_block -= direct_blocks) < indirect_blocks) { | 347 | } else if ((i_block -= direct_blocks) < indirect_blocks) { |