[btrfs-devel]tiny fix for dirty_and_release_pages

Yan Zheng yanzheng at 21cn.com
Thu Sep 13 07:48:38 PDT 2007


Hello,

the bug is so tiny,  it's difficult for me to describe it. :)

Regards
YZ

diff -r 0d4a5b197024 file.c
--- a/file.c	Tue Sep 11 19:45:31 2007 -0400
+++ b/file.c	Thu Sep 13 22:23:22 2007 +0800
@@ -236,7 +236,7 @@ static int dirty_and_release_pages(struc
 					   end_pos - start_pos, p, 0);
 		BUG_ON(err);
 		em->start = start_pos;
-		em->end = end_pos;
+		em->end = end_pos - 1;
 		em->block_start = EXTENT_MAP_INLINE;
 		em->block_end = EXTENT_MAP_INLINE;
 		add_extent_mapping(em_tree, em);



More information about the Btrfs-devel mailing list