nfs-ganesha 1.4
|
Invalidate the cached data on a cache entry. More...
#include "abstract_atomic.h"
#include "log.h"
#include "HashData.h"
#include "HashTable.h"
#include "fsal.h"
#include "cache_inode.h"
#include "cache_inode_lru.h"
#include <unistd.h>
#include <sys/types.h>
#include <sys/param.h>
#include <time.h>
#include <pthread.h>
#include <assert.h>
Go to the source code of this file.
Functions | |
cache_inode_status_t | cache_inode_invalidate (cache_inode_fsal_data_t *fsal_data, cache_inode_status_t *status, uint32_t flags) |
invalidates an entry in the cache |
Invalidate the cached data on a cache entry.
Definition in file cache_inode_invalidate.c.
cache_inode_status_t cache_inode_invalidate | ( | cache_inode_fsal_data_t * | fsal_data, |
cache_inode_status_t * | status, | ||
uint32_t | flags | ||
) |
invalidates an entry in the cache
This function invalidates the related cache entry correponding to a FSAL handle. It is designed to be called when an FSAL upcall is triggered.
[in] | handle | FSAL handle for the entry to be invalidated |
[out] | status | Returned status |
CACHE_INODE_SUCCESS | if operation is a success |
CACHE_INODE_INVALID_ARGUMENT | bad parameter(s) as input |
CACHE_INODE_NOT_FOUND | if entry is not cached |
CACHE_INODE_STATE_CONFLICT | if invalidating this entry would result is state conflict |
CACHE_INODE_INCONSISTENT_ENTRY | if entry is not consistent |
Other | errors shows a FSAL error. |
Definition at line 75 of file cache_inode_invalidate.c.