diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-12-03 16:46:58 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2016-12-03 16:46:58 -0500 |
commit | 011c88e36c26a08590b2ebe214ac854289f85f26 (patch) | |
tree | 0174233d0af6f55b7b73f4d28f884f8954514ad8 /fs/ext4/extents.c | |
parent | 9e645ab72e6f73873a00d042d0ecc9c148d5a6b6 (diff) |
ext4: remove another test in ext4_alloc_file_blocks()
Before commit c3fe493ccdb1 ('ext4: remove unneeded test in
ext4_alloc_file_blocks()') then it was possible for "depth" to be -1
but now, it's not possible that it is negative.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r-- | fs/ext4/extents.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 65dbd2bcf775..3e1014fe835e 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -4700,7 +4700,7 @@ retry: /* * Recalculate credits when extent tree depth changes. */ - if (depth >= 0 && depth != ext_depth(inode)) { + if (depth != ext_depth(inode)) { credits = ext4_chunk_trans_blocks(inode, len); depth = ext_depth(inode); } |