2021-11-26 22:29:06 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
/* FS-Cache interface to CacheFiles
|
|
|
|
*
|
|
|
|
* Copyright (C) 2021 Red Hat, Inc. All Rights Reserved.
|
|
|
|
* Written by David Howells (dhowells@redhat.com)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/slab.h>
|
|
|
|
#include <linux/mount.h>
|
|
|
|
#include <linux/xattr.h>
|
|
|
|
#include <linux/file.h>
|
|
|
|
#include <linux/falloc.h>
|
|
|
|
#include <trace/events/fscache.h>
|
|
|
|
#include "internal.h"
|
|
|
|
|
|
|
|
const struct fscache_cache_ops cachefiles_cache_ops = {
|
|
|
|
.name = "cachefiles",
|
2021-10-21 16:55:21 +08:00
|
|
|
.acquire_volume = cachefiles_acquire_volume,
|
|
|
|
.free_volume = cachefiles_free_volume,
|
2021-11-26 22:29:06 +08:00
|
|
|
};
|