Re: [PATCH 06/10] btrfs: fix remap_file_pages error

2010-05-21 Thread Miao Xie
on 2010-5-20 16:32, Christoph Hellwig wrote: > On Thu, May 20, 2010 at 03:21:50PM +0800, Miao Xie wrote: >> +if (!mapping->a_ops->readpage) >> +return -ENOEXEC; > > I don't think there's any instance of address_space operations without > a readpage method in btrfs. But, Btrfs is b

Re: [PATCH 06/10] btrfs: fix remap_file_pages error

2010-05-20 Thread Christoph Hellwig
On Thu, May 20, 2010 at 03:21:50PM +0800, Miao Xie wrote: > + if (!mapping->a_ops->readpage) > + return -ENOEXEC; I don't think there's any instance of address_space operations without a readpage method in btrfs. -- To unsubscribe from this list: send the line "unsubscribe linux-b

[PATCH 06/10] btrfs: fix remap_file_pages error

2010-05-20 Thread Miao Xie
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 --- fs/btrfs/file.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/fs/btrfs/file.c b/fs/btrfs/f