will follow the correction shown by ("fs: fix page_mkwrite error cases in core code and btrfs") patch to return sane error values. Signed-off-by: Ryusuke Konishi <konishi.ryusuke@xxxxxxxxxxxxx> Cc: Nick Piggin <npiggin@xxxxxxx> --- fs/nilfs2/file.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/nilfs2/file.c b/fs/nilfs2/file.c index 9b4fd96..6bd84a0 100644 --- a/fs/nilfs2/file.c +++ b/fs/nilfs2/file.c @@ -66,7 +66,7 @@ static int nilfs_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf) if (page->mapping != inode->i_mapping || page_offset(page) >= i_size_read(inode) || !PageUptodate(page)) { unlock_page(page); - return VM_FAULT_SIGBUS; /* -EINVAL */ + return VM_FAULT_NOPAGE; /* make the VM retry the fault */ } /* -- 1.5.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html