/* 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)
/* 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 filemap_fdatawait_range(mapping, 0, i_size - 1);
}