Btrfs: fix remap_file_pages error
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 20 May 2010 07:21:50 +0000 (07:21 +0000)
committerChris Mason <chris.mason@oracle.com>
Fri, 11 Jun 2010 15:46:12 +0000 (11:46 -0400)
commit058a457ef0ce28d595af53d6103db73332383cbc
tree7f17117d57c90839cd6d50e588cba0bca97a0de6
parent0e4dcbef1c0c3e29f9c7f824359445d385b2649a
Btrfs: fix remap_file_pages error

when we use remap_file_pages() to remap a file, remap_file_pages always return
error. It is because btrfs didn't set VM_CAN_NONLINEAR for vma.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/file.c