projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76530da
)
[PATCH] Avoid unnecessary ide-cd cache flushes
author
Jens Axboe
<axboe@suse.de>
Sun, 1 May 2005 19:12:52 +0000
(12:12 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Sun, 1 May 2005 19:12:52 +0000
(12:12 -0700)
Only issue a cdrom cache flush if we've done write to the drive. The
->media_written() flag keeps track of that.
Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/cdrom/cdrom.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/cdrom/cdrom.c
b/drivers/cdrom/cdrom.c
index 9deca49c71f03cef89498a1e9e3e3ba7483e3ac8..beaa561f2ed888ad6780699b4ffb15bdc8796c93 100644
(file)
--- a/
drivers/cdrom/cdrom.c
+++ b/
drivers/cdrom/cdrom.c
@@
-645,7
+645,7
@@
static int cdrom_mrw_exit(struct cdrom_device_info *cdi)
ret = cdrom_mrw_bgformat_susp(cdi, 0);
}
- if (!ret)
+ if (!ret
&& cdi->media_written
)
ret = cdrom_flush_cache(cdi);
return ret;