/* A rather strange filldir function to capture the name matching the specified inode number.  */
static int filldir_one(void *__buf, const char *name, int len, loff_t pos, u64 ino, unsigned int d_type)
/* A rather strange filldir function to capture the name matching the specified inode number.  */
static int filldir_one(void *__buf, const char *name, int len, loff_t pos, u64 ino, unsigned int d_type)
{
	struct getdents_callback *buf = __buf;
	int result = 0;
	buf->sequence++;
	if (buf->ino == ino) {
		memcpy(buf->name, name, len);
		buf->name[len] = '\0';
		buf->found = 1;
		result = -1;
	}
	return result;
}