/* This function returns with %1 if the write-buffer contains some data from the given inode otherwise it returns with %0.  */
static int wbuf_has_ino(struct ubifs_wbuf *wbuf, ino_t inum)
/* This function returns with %1 if the write-buffer contains some data from the given inode otherwise it returns with %0.  */
static int wbuf_has_ino(struct ubifs_wbuf *wbuf, ino_t inum)
{
	int i, ret = 0;
	spin_lock(&wbuf->lock);
	for (i = 0; i < wbuf->next_ino; i++)
		if (inum == wbuf->inodes[i]) {
			ret = 1;
			break;
		}
	spin_unlock(&wbuf->lock);
	return ret;
}