Skip to content

Commit

Permalink
ocfs2: Fix contiguousness check in ocfs2_try_to_merge_extent_map()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roel Kluin authored and Joel Becker committed Feb 5, 2010
1 parent cda70ba commit bd6b0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ocfs2/extent_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bd6b0bf

Please sign in to comment.