Btrfs: fix readahead in file defrag
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 20 Jul 2011 03:46:35 +0000 (03:46 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 1 Aug 2011 18:30:42 +0000 (14:30 -0400)
commitb6973aa62253f3791ef6fa5e9f9de099645fc2bd
treeeb4fe689723dc89e803a139d0d873dc4c9cd205d
parentb532402e4d147e4f409c4e7f50d4413e8450101d
Btrfs: fix readahead in file defrag

We passed the wrong value to btrfs_force_ra(). Fix this by changing
the argument of btrfs_force_ra() from last_index to nr_page.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/inode.c