Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3c18ddd1 authored by Nick Piggin's avatar Nick Piggin Committed by Linus Torvalds
Browse files

mm: remove nopage



Nothing in the tree uses nopage any more.  Remove support for it in the
core mm code and documentation (and a few stray references to it in
comments).

Signed-off-by: default avatarNick Piggin <npiggin@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4d3d5b41
Loading
Loading
Loading
Loading
+0 −9
Original line number Original line Diff line number Diff line
@@ -128,15 +128,6 @@ Who: Arjan van de Ven <arjan@linux.intel.com>


---------------------------
---------------------------


What:	vm_ops.nopage
When:	Soon, provided in-kernel callers have been converted
Why:	This interface is replaced by vm_ops.fault, but it has been around
	forever, is used by a lot of drivers, and doesn't cost much to
	maintain.
Who:	Nick Piggin <npiggin@suse.de>

---------------------------

What:	PHYSDEVPATH, PHYSDEVBUS, PHYSDEVDRIVER in the uevent environment
What:	PHYSDEVPATH, PHYSDEVBUS, PHYSDEVDRIVER in the uevent environment
When:	October 2008
When:	October 2008
Why:	The stacking of class devices makes these values misleading and
Why:	The stacking of class devices makes these values misleading and
+0 −3
Original line number Original line Diff line number Diff line
@@ -511,7 +511,6 @@ prototypes:
	void (*open)(struct vm_area_struct*);
	void (*open)(struct vm_area_struct*);
	void (*close)(struct vm_area_struct*);
	void (*close)(struct vm_area_struct*);
	int (*fault)(struct vm_area_struct*, struct vm_fault *);
	int (*fault)(struct vm_area_struct*, struct vm_fault *);
	struct page *(*nopage)(struct vm_area_struct*, unsigned long, int *);
	int (*page_mkwrite)(struct vm_area_struct *, struct page *);
	int (*page_mkwrite)(struct vm_area_struct *, struct page *);


locking rules:
locking rules:
@@ -519,7 +518,6 @@ locking rules:
open:		no	yes
open:		no	yes
close:		no	yes
close:		no	yes
fault:		no	yes
fault:		no	yes
nopage:		no	yes
page_mkwrite:	no	yes		no
page_mkwrite:	no	yes		no


	->page_mkwrite() is called when a previously read-only page is
	->page_mkwrite() is called when a previously read-only page is
@@ -537,4 +535,3 @@ NULL.


ipc/shm.c::shm_delete() - may need BKL.
ipc/shm.c::shm_delete() - may need BKL.
->read() and ->write() in many drivers are (probably) missing BKL.
->read() and ->write() in many drivers are (probably) missing BKL.
drivers/sgi/char/graphics.c::sgi_graphics_nopage() - may need BKL.
+1 −1
Original line number Original line Diff line number Diff line
@@ -13,7 +13,7 @@
/*
/*
 * TODO:
 * TODO:
 * - remove "mark pages reserved-hacks" from memory allocation code
 * - remove "mark pages reserved-hacks" from memory allocation code
 *   and implement nopage()
 *   and implement fault()
 * - check decimation, calculating and reporting image size when
 * - check decimation, calculating and reporting image size when
 *   using decimation
 *   using decimation
 * - implement read(), user mode buffers and overlay (?)
 * - implement read(), user mode buffers and overlay (?)
+3 −2
Original line number Original line Diff line number Diff line
@@ -112,8 +112,9 @@ static int vmlfb_alloc_vram_area(struct vram_area *va, unsigned max_order,


	/*
	/*
	 * It seems like __get_free_pages only ups the usage count
	 * It seems like __get_free_pages only ups the usage count
	 * of the first page. This doesn't work with nopage mapping, so
	 * of the first page. This doesn't work with fault mapping, so
	 * up the usage count once more.
	 * up the usage count once more (XXX: should use split_page or
	 * compound page).
	 */
	 */


	memset((void *)va->logical, 0x00, va->size);
	memset((void *)va->logical, 0x00, va->size);
+1 −1
Original line number Original line Diff line number Diff line
@@ -438,7 +438,7 @@ static int stuffed_readpage(struct gfs2_inode *ip, struct page *page)
	int error;
	int error;


	/*
	/*
	 * Due to the order of unstuffing files and ->nopage(), we can be
	 * Due to the order of unstuffing files and ->fault(), we can be
	 * asked for a zero page in the case of a stuffed file being extended,
	 * asked for a zero page in the case of a stuffed file being extended,
	 * so we need to supply one here. It doesn't happen often.
	 * so we need to supply one here. It doesn't happen often.
	 */
	 */
Loading