/* Basically, this is a convenience function for fsync(). @mapping is a file or directory which needs those buffers to be written for a successful fsync().  */
int sync_mapping_buffers(struct address_space *mapping)
/* Basically, this is a convenience function for fsync(). @mapping is a file or directory which needs those buffers to be written for a successful fsync().  */
int sync_mapping_buffers(struct address_space *mapping)
{
	struct address_space *buffer_mapping = mapping->assoc_mapping;
	if (buffer_mapping == NULL || list_empty(&mapping->private_list))
		return 0;
	return fsync_buffers_list(&buffer_mapping->private_lock,
					&mapping->private_list);
}