summaryrefslogtreecommitdiff
path: root/fs/ext4/extents.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2016-12-04 00:46:58 +0300
committerTheodore Ts'o <tytso@mit.edu>2016-12-04 00:46:58 +0300
commit011c88e36c26a08590b2ebe214ac854289f85f26 (patch)
tree0174233d0af6f55b7b73f4d28f884f8954514ad8 /fs/ext4/extents.c
parent9e645ab72e6f73873a00d042d0ecc9c148d5a6b6 (diff)
downloadlinux-011c88e36c26a08590b2ebe214ac854289f85f26.tar.xz
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.c2
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);
}