aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_map.c
diff options
context:
space:
mode:
authorYan Zheng <zheng.yan@oracle.com>2009-01-21 10:49:16 -0500
committerChris Mason <chris.mason@oracle.com>2009-01-21 10:49:16 -0500
commit86288a198d8e4e8411ff02f9ab848245e8f11257 (patch)
treef580414864d322799a750a1dcc371f6dd62ce543 /fs/btrfs/extent_map.c
parent95029d7d598babf62276d9006e575992b1333ba5 (diff)
downloadkernel_samsung_crespo-86288a198d8e4e8411ff02f9ab848245e8f11257.zip
kernel_samsung_crespo-86288a198d8e4e8411ff02f9ab848245e8f11257.tar.gz
kernel_samsung_crespo-86288a198d8e4e8411ff02f9ab848245e8f11257.tar.bz2
Btrfs: fix stop searching test in replace_one_extent
replace_one_extent searches tree leaves for references to a given extent. It stops searching if it goes beyond the last possible position. The last possible position is computed by adding the starting offset of a found file extent to the full size of the extent. The code uses physical size of the extent as the full size. This is incorrect when compression is used. The fix is get the full size from ram_bytes field of file extent item. Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_map.c')
0 files changed, 0 insertions, 0 deletions