Re: [PATCH] mm: Conveted to use vm_fault_t

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 28, 2018 at 11:18 PM Souptick Joarder <jrdr.linux@xxxxxxxxx> wrote:
>
> As part of vm_fault_t conversion filemap_page_mkwrite()
> for NOMMU case was missed. Now converted.
>
> Signed-off-by: Souptick Joarder <jrdr.linux@xxxxxxxxx>

cc: Matthew Wilcox <willy@xxxxxxxxxxxxx>

> ---
>  mm/filemap.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/mm/filemap.c b/mm/filemap.c
> index 52517f2..de6fed2 100644
> --- a/mm/filemap.c
> +++ b/mm/filemap.c
> @@ -2748,9 +2748,9 @@ int generic_file_readonly_mmap(struct file *file, struct vm_area_struct *vma)
>         return generic_file_mmap(file, vma);
>  }
>  #else
> -int filemap_page_mkwrite(struct vm_fault *vmf)
> +vm_fault_t filemap_page_mkwrite(struct vm_fault *vmf)
>  {
> -       return -ENOSYS;
> +       return VM_FAULT_SIGBUS;
>  }
>  int generic_file_mmap(struct file * file, struct vm_area_struct * vma)
>  {
> --
> 1.9.1
>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux