Message ID | 20100725144224.GA21910@dhcp231-156.rdu.redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 3232945..7259ef9 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -5815,7 +5815,7 @@ free_ordered: if (write) { struct btrfs_ordered_extent *ordered; ordered = btrfs_lookup_ordered_extent(inode, - dip->logical_offset); + file_offset); if (!test_bit(BTRFS_ORDERED_PREALLOC, &ordered->flags) && !test_bit(BTRFS_ORDERED_NOCOW, &ordered->flags)) btrfs_free_reserved_extent(root, ordered->start,