Unverified Commit fa8c6efa authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

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

parents aa0f0127 fb45e5b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2047,7 +2047,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));