/* This function calculates and returns amount of free space to report to user-space.  */
long long ubifs_get_free_space(struct ubifs_info *c)
/* This function calculates and returns amount of free space to report to user-space.  */
long long ubifs_get_free_space(struct ubifs_info *c)
{
	long long free;
	spin_lock(&c->space_lock);
	free = ubifs_get_free_space_nolock(c);
	spin_unlock(&c->space_lock);
	return free;
}