.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "WRITE_SWAP_PAGE" "" "06 October 2005" "" "" .SH NAME write_swap_page \- Write one page to a fresh swap location. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int write_swap_page (unsigned long \fIaddr\fB, swp_entry_t * \fIloc\fB); \fR .SH "ARGUMENTS" .TP \fB\fIaddr\fB\fR Address we're writing. .TP \fB\fIloc\fB\fR Place to store the entry we used. .SH "DESCRIPTION" .PP Allocate a new swap entry and 'sync' it. Note we discard -EIO errors. That is an artifact left over from swsusp. It did not check the return of \fBrw_swap_page_sync\fR at all, since most pages written back to swap would return -EIO. This is a partial improvement, since we will at least return other errors, though we need to eventually fix the damn code.