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
c04eba72
Commit
c04eba72
authored
Jun 17, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bfa: switch to fixed_size_llseek()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
eb5881d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
25 deletions
+3
-25
drivers/scsi/bfa/bfad_debugfs.c
drivers/scsi/bfa/bfad_debugfs.c
+3
-25
No files found.
drivers/scsi/bfa/bfad_debugfs.c
View file @
c04eba72
...
...
@@ -173,31 +173,9 @@ bfad_debugfs_open_reg(struct inode *inode, struct file *file)
static
loff_t
bfad_debugfs_lseek
(
struct
file
*
file
,
loff_t
offset
,
int
orig
)
{
struct
bfad_debug_info
*
debug
;
loff_t
pos
=
file
->
f_pos
;
debug
=
file
->
private_data
;
switch
(
orig
)
{
case
0
:
file
->
f_pos
=
offset
;
break
;
case
1
:
file
->
f_pos
+=
offset
;
break
;
case
2
:
file
->
f_pos
=
debug
->
buffer_len
+
offset
;
break
;
default:
return
-
EINVAL
;
}
if
(
file
->
f_pos
<
0
||
file
->
f_pos
>
debug
->
buffer_len
)
{
file
->
f_pos
=
pos
;
return
-
EINVAL
;
}
return
file
->
f_pos
;
struct
bfad_debug_info
*
debug
=
file
->
private_data
;
return
fixed_size_llseek
(
file
,
offset
,
orig
,
debug
->
buffer_len
);
}
static
ssize_t
...
...
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