* [PATCH] mm: Conveted to use vm_fault_t
@ 2018-08-28 17:51 Souptick Joarder
2018-08-28 18:03 ` Souptick Joarder
0 siblings, 1 reply; 2+ messages in thread
From: Souptick Joarder @ 2018-08-28 17:51 UTC (permalink / raw)
To: akpm, jack, mgorman, ak, mawilcox, tim.c.chen, ross.zwisler
Cc: linux-mm, linux-kernel
As part of vm_fault_t conversion filemap_page_mkwrite()
for NOMMU case was missed. Now converted.
Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mm: Conveted to use vm_fault_t
2018-08-28 17:51 [PATCH] mm: Conveted to use vm_fault_t Souptick Joarder
@ 2018-08-28 18:03 ` Souptick Joarder
0 siblings, 0 replies; 2+ messages in thread
From: Souptick Joarder @ 2018-08-28 18:03 UTC (permalink / raw)
To: Andrew Morton, Jan Kara, mgorman, ak, tim.c.chen, Ross Zwisler,
Matthew Wilcox
Cc: Linux-MM, linux-kernel
On Tue, Aug 28, 2018 at 11:18 PM Souptick Joarder <jrdr.linux@gmail.com> 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@gmail.com>
cc: Matthew Wilcox <willy@infradead.org>
> ---
> 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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-08-28 18:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-28 17:51 [PATCH] mm: Conveted to use vm_fault_t Souptick Joarder
2018-08-28 18:03 ` Souptick Joarder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).