]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit73acf7da0a5697d74d4a8202a29db93173ea7e0a
treeeb4fe689723dc89e803a139d0d873dc4c9cd205d
parented0646ab919afcb12a9fc3dd271f344d7296b2af
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