diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-11-07 21:08:16 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:57 -0400 |
commit | 257d0ce36f215937602eb5c1b328b69afaf3bcd8 (patch) | |
tree | 4a08be69cd4807950e973d7ec797ce284eff5640 /fs/btrfs/file.c | |
parent | 09be207d1ba224531a61de9afdc07a125e45318c (diff) |
Btrfs: Allow large data extents in a single file to span into metadata block groups
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r-- | fs/btrfs/file.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 5ceaed25dce1..9dd2c5c23b56 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
@@ -439,6 +439,12 @@ next_slot: | |||
439 | struct btrfs_file_extent_item); | 439 | struct btrfs_file_extent_item); |
440 | found_type = btrfs_file_extent_type(leaf, extent); | 440 | found_type = btrfs_file_extent_type(leaf, extent); |
441 | if (found_type == BTRFS_FILE_EXTENT_REG) { | 441 | if (found_type == BTRFS_FILE_EXTENT_REG) { |
442 | extent_end = | ||
443 | btrfs_file_extent_disk_bytenr(leaf, | ||
444 | extent); | ||
445 | if (extent_end) | ||
446 | *hint_byte = extent_end; | ||
447 | |||
442 | extent_end = key.offset + | 448 | extent_end = key.offset + |
443 | btrfs_file_extent_num_bytes(leaf, extent); | 449 | btrfs_file_extent_num_bytes(leaf, extent); |
444 | found_extent = 1; | 450 | found_extent = 1; |