Commit 1a00a393 authored by Edward Adam Davis's avatar Edward Adam Davis Committed by Theodore Ts'o
Browse files

ext4: no need to continue when the number of entries is 1

parent 70dd7b57
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1999,7 +1999,7 @@ static struct ext4_dir_entry_2 *do_split(handle_t *handle, struct inode *dir,
		split = count/2;

	hash2 = map[split].hash;
	continued = hash2 == map[split - 1].hash;
	continued = split > 0 ? hash2 == map[split - 1].hash : 0;
	dxtrace(printk(KERN_INFO "Split block %lu at %x, %i/%i\n",
			(unsigned long)dx_get_block(frame->at),
					hash2, split, count-split));