/* This function returns %0 on success or a negative error code on failure.  */
static int gc_sync_wbufs(struct ubifs_info *c)
/* This function returns %0 on success or a negative error code on failure.  */
static int gc_sync_wbufs(struct ubifs_info *c)
{
	int err, i;
	for (i = 0; i < c->jhead_cnt; i++) {
		if (i == GCHD)
			continue;
		err = ubifs_wbuf_sync(&c->jheads[i].wbuf);
		if (err)
			return err;
	}
	return 0;
}