/* open "/proc/fs/fscache/objects" to provide a list of active objects */
static int fscache_objlist_open(struct inode *inode, struct file *file)
/* open "/proc/fs/fscache/objects" to provide a list of active objects */
static int fscache_objlist_open(struct inode *inode, struct file *file)
{
	struct fscache_objlist_data *data;
	struct seq_file *m;
	int ret;
	ret = seq_open(file, &fscache_objlist_ops);
	if (ret < 0)
		return ret;
	m = file->private_data;
	data = kmalloc(sizeof(struct fscache_objlist_data), GFP_KERNEL);
	if (!data) {
		seq_release(inode, file);
		return -ENOMEM;
	}
	fscache_objlist_config(data);
	m->private = data;
	return 0;
}