Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
2164d334
Commit
2164d334
authored
Jun 23, 2012
by
Cong Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pipe: remove KM_USER0 from comments
Signed-off-by:
Cong Wang
<
amwang@redhat.com
>
parent
a8e5202d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
fs/pipe.c
fs/pipe.c
+1
-1
include/linux/pipe_fs_i.h
include/linux/pipe_fs_i.h
+3
-5
No files found.
fs/pipe.c
View file @
2164d334
...
...
@@ -224,7 +224,7 @@ static void anon_pipe_buf_release(struct pipe_inode_info *pipe,
* and the caller has to be careful not to fault before calling
* the unmap function.
*
* Note that this function
occupies KM_USER0
if @atomic != 0.
* Note that this function
calls kmap_atomic()
if @atomic != 0.
*/
void
*
generic_pipe_buf_map
(
struct
pipe_inode_info
*
pipe
,
struct
pipe_buffer
*
buf
,
int
atomic
)
...
...
include/linux/pipe_fs_i.h
View file @
2164d334
...
...
@@ -86,11 +86,9 @@ struct pipe_buf_operations {
* mapping or not. The atomic map is faster, however you can't take
* page faults before calling ->unmap() again. So if you need to eg
* access user data through copy_to/from_user(), then you must get
* a non-atomic map. ->map() uses the KM_USER0 atomic slot for
* atomic maps, so you can't map more than one pipe_buffer at once
* and you have to be careful if mapping another page as source
* or destination for a copy (IOW, it has to use something else
* than KM_USER0).
* a non-atomic map. ->map() uses the kmap_atomic slot for
* atomic maps, you have to be careful if mapping another page as
* source or destination for a copy.
*/
void
*
(
*
map
)(
struct
pipe_inode_info
*
,
struct
pipe_buffer
*
,
int
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment