forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change ->fault prototype. We now return an int, which contains VM_FAULT_xxx code in the low byte, and FAULT_RET_xxx code in the next byte. FAULT_RET_ code tells the VM whether a page was found, whether it has been locked, and potentially other things. This is not quite the way he wanted it yet, but that's changed in the next patch (which requires changes to arch code). This means we no longer set VM_CAN_INVALIDATE in the vma in order to say that a page is locked which requires filemap_nopage to go away (because we can no longer remain backward compatible without that flag), but we were going to do that anyway. struct fault_data is renamed to struct vm_fault as Linus asked. address is now a void __user * that we should firmly encourage drivers not to use without really good reason. The page is now returned via a page pointer in the vm_fault struct. Signed-off-by: Nick Piggin <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information
Nick Piggin
authored and
Linus Torvalds
committed
Jul 19, 2007
1 parent
ed2f2f9
commit d0217ac
Showing
16 changed files
with
238 additions
and
524 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,26 +135,8 @@ Who: Greg Kroah-Hartman <[email protected]> | |
|
||
--------------------------- | ||
|
||
What: filemap_nopage, filemap_populate | ||
When: April 2007 | ||
Why: These legacy interfaces no longer have any callers in the kernel and | ||
any functionality provided can be provided with filemap_fault. The | ||
removal schedule is short because they are a big maintainence burden | ||
and have some bugs. | ||
Who: Nick Piggin <[email protected]> | ||
|
||
--------------------------- | ||
|
||
What: vm_ops.populate, install_page | ||
When: April 2007 | ||
Why: These legacy interfaces no longer have any callers in the kernel and | ||
any functionality provided can be provided with vm_ops.fault. | ||
Who: Nick Piggin <[email protected]> | ||
|
||
--------------------------- | ||
|
||
What: vm_ops.nopage | ||
When: February 2008, provided in-kernel callers have been converted | ||
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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.