aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/async-thread.h
diff options
context:
space:
mode:
authorchandan <[email protected]>2015-06-09 12:08:32 +0000
committerChris Mason <[email protected]>2015-06-10 14:02:47 +0000
commite4826a5b2430f23ad4ec7823efcd413fce9f2d64 (patch)
tree63004d5009b0e7a178758264511202dcf6a1d3dc /fs/btrfs/async-thread.h
parentBtrfs: fix necessary chunk tree space calculation when allocating a chunk (diff)
downloadkernel-e4826a5b2430f23ad4ec7823efcd413fce9f2d64.tar.gz
kernel-e4826a5b2430f23ad4ec7823efcd413fce9f2d64.zip
Btrfs: btrfs_defrag_file: Fix ra_index computation.
Read-ahead is done for the pages in the range [ra_index, ra_index + cluster - 1]. So the next read-ahead should be starting from the page at index 'ra_index + cluster' (unless we deemed that the extent at 'ra_index + cluster' as non-defraggable) rather than from the page at index 'ra_index + max_cluster'. This patch fixes this. I did run the xfstests suite to make sure that the code does not regress. Signed-off-by: Chandan Rajendra <[email protected]> Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.h')
0 files changed, 0 insertions, 0 deletions