mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-10 00:26:34 +00:00
[PATCH] BLOCK: Dissociate generic_writepages() from mpage stuff [try #6]
Dissociate the generic_writepages() function from the mpage stuff, moving its declaration to linux/mm.h and actually emitting a full implementation into mm/page-writeback.c. The implementation is a partial duplicate of mpage_writepages() with all BIO references removed. It is used by NFS to do writeback. Signed-Off-By: David Howells <dhowells@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
7b0de42d7c
commit
811d736f9e
5 changed files with 139 additions and 6 deletions
|
@ -20,9 +20,3 @@ int mpage_writepages(struct address_space *mapping,
|
|||
struct writeback_control *wbc, get_block_t get_block);
|
||||
int mpage_writepage(struct page *page, get_block_t *get_block,
|
||||
struct writeback_control *wbc);
|
||||
|
||||
static inline int
|
||||
generic_writepages(struct address_space *mapping, struct writeback_control *wbc)
|
||||
{
|
||||
return mpage_writepages(mapping, wbc, NULL);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue