forked from luck/tmp_suning_uos_patched
ocfs2: Fix contiguousness check in ocfs2_try_to_merge_extent_map()
The wrong member was compared in the continguousness check. Acked-by: Tao Ma <tao.ma@oracle.com> Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Joel Becker <joel.becker@oracle.com>
This commit is contained in:
parent
cda70ba8c0
commit
bd6b0bf87d
|
@ -192,7 +192,7 @@ static int ocfs2_try_to_merge_extent_map(struct ocfs2_extent_map_item *emi,
|
|||
emi->ei_clusters += ins->ei_clusters;
|
||||
return 1;
|
||||
} else if ((ins->ei_phys + ins->ei_clusters) == emi->ei_phys &&
|
||||
(ins->ei_cpos + ins->ei_clusters) == emi->ei_phys &&
|
||||
(ins->ei_cpos + ins->ei_clusters) == emi->ei_cpos &&
|
||||
ins->ei_flags == emi->ei_flags) {
|
||||
emi->ei_phys = ins->ei_phys;
|
||||
emi->ei_cpos = ins->ei_cpos;
|
||||
|
|
Loading…
Reference in New Issue
Block a user