platform/linux/mm/filemap.c
/**
 * filemap_fdatawait - wait for all under-writeback pages to complete
 * @mapping: address space structure to wait for
 *
 * Walk the list of under-writeback pages of the given address space
 * and wait for all of them.
 */
wait for all under-writeback pages to complete
@mapping: address space structure to wait for

Walk the list of under-writeback pages of the given address space
and wait for all of them.
wait for all under - writeback pages to complete @mapping : address space structure to wait for Walk the list of under - writeback pages of the given address space and wait for all of them .
int filemap_fdatawait(struct address_space *mapping)
{
	loff_t i_size = i_size_read(mapping->host);
	if (i_size == 0)
		return 0;
	return wait_on_page_writeback_range(mapping, 0,
				(i_size - 1) >> PAGE_CACHE_SHIFT);
}
int filemap_fdatawait ( struct address_space * mapping ) { loff_t i_size = i_size_read ( mapping -> host ) ; if ( i_size == 0 ) return 0 ; return wait_on_page_writeback_range ( mapping , 0 , ( i_size - 1 ) >> PAGE_CACHE_SHIFT ) ; }
filemap_fdatawait - wait for all under-writeback pages to complete
 @mapping: address space structure to wait for
filemap_fdatawait - wait for all under - writeback pages to complete @mapping : address space structure to wait for