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
nexedi
linux
Commits
b33159b7
Commit
b33159b7
authored
Jun 23, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proc_powerpc: switch to fixed_size_llseek()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
4a1f2f38
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
18 deletions
+2
-18
arch/powerpc/kernel/proc_powerpc.c
arch/powerpc/kernel/proc_powerpc.c
+2
-18
No files found.
arch/powerpc/kernel/proc_powerpc.c
View file @
b33159b7
...
...
@@ -29,25 +29,9 @@
#ifdef CONFIG_PPC64
static
loff_t
page_map_seek
(
struct
file
*
file
,
loff_t
off
,
int
whence
)
static
loff_t
page_map_seek
(
struct
file
*
file
,
loff_t
off
,
int
whence
)
{
loff_t
new
;
switch
(
whence
)
{
case
0
:
new
=
off
;
break
;
case
1
:
new
=
file
->
f_pos
+
off
;
break
;
case
2
:
new
=
PAGE_SIZE
+
off
;
break
;
default:
return
-
EINVAL
;
}
if
(
new
<
0
||
new
>
PAGE_SIZE
)
return
-
EINVAL
;
return
(
file
->
f_pos
=
new
);
return
fixed_size_llseek
(
file
,
off
,
whence
,
PAGE_SIZE
);
}
static
ssize_t
page_map_read
(
struct
file
*
file
,
char
__user
*
buf
,
size_t
nbytes
,
...
...
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