login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
November
»
12
Re: [rfc][patch] remove nopage
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Nick Piggin <npiggin@...>
To: Jeff Garzik <jgarzik@...>
Cc: Linus Torvalds <torvalds@...>, Linux Memory Management List <linux-mm@...>, Linux Kernel Mailing List <linux-kernel@...>, Hugh Dickins <hugh@...>, Andrew Morton <akpm@...>, <linux-ia64@...>, <rth@...>, Jaya Kumar <jayakumar.lkml@...>, <krh@...>, <stefanr@...>, <rolandd@...>, <mshefty@...>, <hal.rosenstock@...>, <avi@...>, <mchehab@...>, <dgilbert@...>, Greg Kroah-Hartman <greg@...>, Takashi Iwai <tiwai@...>, <perex@...>, Karsten Wiese <annabellesgarden@...>
Subject:
Re: [rfc][patch] remove nopage
Date: Monday, November 12, 2007 - 12:36 am
On Sun, Nov 11, 2007 at 09:04:29PM -0500, Jeff Garzik wrote:
quoted text
> Nick Piggin wrote: > >Index: linux-2.6/sound/oss/via82cxxx_audio.c > >=================================================================== > >--- linux-2.6.orig/sound/oss/via82cxxx_audio.c > >+++ linux-2.6/sound/oss/via82cxxx_audio.c > >@@ -2099,8 +2099,7 @@ static void via_dsp_cleanup (struct via_ > > } > > > > > >-static struct page * via_mm_nopage (struct vm_area_struct * vma, > >- unsigned long address, int *type) > >+static int via_mm_fault (struct vm_area_struct *vma, struct vm_fault *vmf) > > { > > struct via_info *card = vma->vm_private_data; > > struct via_channel *chan = &card->ch_out; > >@@ -2108,22 +2107,14 @@ static struct page * via_mm_nopage (stru > > unsigned long pgoff; > > int rd, wr; > > > >- DPRINTK ("ENTER, start %lXh, ofs %lXh, pgoff %ld, addr %lXh\n", > >- vma->vm_start, > >- address - vma->vm_start, > >- (address - vma->vm_start) >> PAGE_SHIFT, > >- address); > >- > >- if (address > vma->vm_end) { > >- DPRINTK ("EXIT, returning NOPAGE_SIGBUS\n"); > >- return NOPAGE_SIGBUS; /* Disallow mremap */ > >- } > >+ DPRINTK ("ENTER, pgoff %ld\n", vmf->pgoff); > >+ > > if (!card) { > >- DPRINTK ("EXIT, returning NOPAGE_SIGBUS\n"); > >- return NOPAGE_SIGBUS; /* Nothing allocated */ > >+ DPRINTK ("EXIT, returning VM_FAULT_SIGBUS\n"); > >+ return VM_FAULT_SIGBUS; /* Nothing allocated */ > > } > > > >- pgoff = vma->vm_pgoff + ((address - vma->vm_start) >> PAGE_SHIFT); > >+ pgoff = vmf->pgoff; > > rd = card->ch_in.is_mapped; > > wr = card->ch_out.is_mapped; > > > >@@ -2150,9 +2141,8 @@ static struct page * via_mm_nopage (stru > > DPRINTK ("EXIT, returning page %p for cpuaddr %lXh\n", > > dmapage, (unsigned long) chan->pgtbl[pgoff].cpuaddr); > > get_page (dmapage); > >- if (type) > >- *type = VM_FAULT_MINOR; > >- return dmapage; > >+ vmf->page = dmapage; > >+ return 0; > > } > > > Although the overall concept looks nice (ACK, good work), the above > change does not build. The code continues to reference via_mm_nopage(), > which has been renamed to via_mm_fault() in your patch.
Ah dang, it was just the .nopage in the same file that I missed. Fixed. Thanks. -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[rfc][patch] remove nopage
, Nick Piggin
, (Sun Nov 11, 9:56 pm)
Re: [rfc][patch] remove nopage
, Takashi Iwai
, (Wed Nov 14, 9:26 am)
Re: [rfc][patch] remove nopage
, Jon Masters
, (Mon Nov 12, 4:16 am)
Re: [rfc][patch] remove nopage
, Jon Masters
, (Mon Nov 12, 4:19 am)
Re: [rfc][patch] remove nopage
, Jeff Garzik
, (Sun Nov 11, 10:04 pm)
Re: [rfc][patch] remove nopage
, Nick Piggin
, (Mon Nov 12, 12:36 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
monstr
[PATCH 27/56] microblaze_v2: support for a.out
Andrew Morton
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
mdew .
Re: [patch] CFS scheduler, v4
Gabriel C
Re: 2.6.21-mm1
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Willy Tarreau
Re: [PATCH] tcp: splice as many packets as possible at once
Linus Torvalds
Re: [GIT]: Networking
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
9 users
and
962 guests
online.
Online users
strcmp
zeekec
JohnSwem123
expertseoservi
johncharretier
leatherlingeri
primalforcepr
robertobeya89
Jeremy
Syndicate