]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Btrfs: btrfs_mark_extent_written uses the wrong slot
authorShaohua Li <shaohua.li@intel.com>
Thu, 11 Feb 2010 07:43:00 +0000 (07:43 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:20:12 +0000 (13:20 -0700)
commitf827e15f9ff7f653a3fff45487faf1460edd7705
tree189ee93759ddc5d7832e30dc83698ee8aedc3a7a
parentb5763c0f3bb1ca5ca64d2b72d07e8b42ab624ab0
Btrfs: btrfs_mark_extent_written uses the wrong slot

commit 3f6fae9559225741c91f1320090b285da1413290 upstream.

My test do: fallocate a big file and do write. The file is 512M, but
after file write is done btrfs-debug-tree shows:
item 6 key (257 EXTENT_DATA 0) itemoff 3516 itemsize 53
                extent data disk byte 1103101952 nr 536870912
                extent data offset 0 nr 399634432 ram 536870912
                extent compression 0
Looks like a regression introducted by
6c7d54ac87f338c479d9729e8392eca3f76e11e1, where we set wrong slot.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Acked-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Acked-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/btrfs/file.c