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
09eb39e8
Commit
09eb39e8
authored
Feb 19, 2004
by
Bartlomiej Zolnierkiewicz
Committed by
Linus Torvalds
Feb 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] kill default_flushcache() and ide_drive_t->flushcache
parent
01225f82
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
17 deletions
+0
-17
drivers/ide/ide-disk.c
drivers/ide/ide-disk.c
+0
-1
drivers/ide/ide.c
drivers/ide/ide.c
+0
-15
include/linux/ide.h
include/linux/ide.h
+0
-1
No files found.
drivers/ide/ide-disk.c
View file @
09eb39e8
...
...
@@ -1700,7 +1700,6 @@ static ide_driver_t idedisk_driver = {
.
busy
=
0
,
.
supports_dsc_overlap
=
0
,
.
cleanup
=
idedisk_cleanup
,
.
flushcache
=
do_idedisk_flushcache
,
.
do_request
=
ide_do_rw_disk
,
.
sense
=
idedisk_dump_status
,
.
error
=
idedisk_error
,
...
...
drivers/ide/ide.c
View file @
09eb39e8
...
...
@@ -2168,20 +2168,6 @@ static int default_cleanup (ide_drive_t *drive)
return
ide_unregister_subdriver
(
drive
);
}
/*
* Default function to use for the cache flush operation. This
* must be replaced for disk devices (see ATA specification
* documents on cache flush and drive suspend rules)
*
* If we have no device attached or the device is not writable
* this handler is sufficient.
*/
static
int
default_flushcache
(
ide_drive_t
*
drive
)
{
return
0
;
}
static
ide_startstop_t
default_do_request
(
ide_drive_t
*
drive
,
struct
request
*
rq
,
sector_t
block
)
{
ide_end_request
(
drive
,
0
,
0
);
...
...
@@ -2244,7 +2230,6 @@ static ide_startstop_t default_start_power_step(ide_drive_t *drive,
static
void
setup_driver_defaults
(
ide_driver_t
*
d
)
{
if
(
d
->
cleanup
==
NULL
)
d
->
cleanup
=
default_cleanup
;
if
(
d
->
flushcache
==
NULL
)
d
->
flushcache
=
default_flushcache
;
if
(
d
->
do_request
==
NULL
)
d
->
do_request
=
default_do_request
;
if
(
d
->
end_request
==
NULL
)
d
->
end_request
=
default_end_request
;
if
(
d
->
sense
==
NULL
)
d
->
sense
=
default_sense
;
...
...
include/linux/ide.h
View file @
09eb39e8
...
...
@@ -1160,7 +1160,6 @@ typedef struct ide_driver_s {
unsigned
busy
:
1
;
unsigned
supports_dsc_overlap
:
1
;
int
(
*
cleanup
)(
ide_drive_t
*
);
int
(
*
flushcache
)(
ide_drive_t
*
);
ide_startstop_t
(
*
do_request
)(
ide_drive_t
*
,
struct
request
*
,
sector_t
);
int
(
*
end_request
)(
ide_drive_t
*
,
int
,
int
);
u8
(
*
sense
)(
ide_drive_t
*
,
const
char
*
,
u8
);
...
...
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