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) | |
download | lwn-257d0ce36f215937602eb5c1b328b69afaf3bcd8.tar.gz lwn-257d0ce36f215937602eb5c1b328b69afaf3bcd8.zip |
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: struct btrfs_file_extent_item); found_type = btrfs_file_extent_type(leaf, extent); if (found_type == BTRFS_FILE_EXTENT_REG) { + extent_end = + btrfs_file_extent_disk_bytenr(leaf, + extent); + if (extent_end) + *hint_byte = extent_end; + extent_end = key.offset + btrfs_file_extent_num_bytes(leaf, extent); found_extent = 1; |