mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[PATCH] set_page_dirty() return value fixes
We need set_page_dirty() to return true if it actually transitioned the page from a clean to dirty state. This wasn't right in a couple of places. Do a kernel-wide audit, fix things up. This leaves open the possibility of returning a negative errno from set_page_dirty() sometime in the future. But we don't do that at present. Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
fa5a734e40
commit
4741c9fd36
5 changed files with 11 additions and 9 deletions
|
|
@ -2944,7 +2944,7 @@ static int cryptocop_ioctl_process(struct inode *inode, struct file *filp, unsig
|
|||
int spdl_err;
|
||||
/* Mark output pages dirty. */
|
||||
spdl_err = set_page_dirty_lock(outpages[i]);
|
||||
DEBUG(if (spdl_err)printk("cryptocop_ioctl_process: set_page_dirty_lock returned %d\n", spdl_err));
|
||||
DEBUG(if (spdl_err < 0)printk("cryptocop_ioctl_process: set_page_dirty_lock returned %d\n", spdl_err));
|
||||
}
|
||||
for (i = 0; i < nooutpages; i++){
|
||||
put_page(outpages[i]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue