nfs-ganesha 1.4
Functions

cache_inode_invalidate.c File Reference

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

Detailed Description

Invalidate the cached data on a cache entry.

Definition in file cache_inode_invalidate.c.


Function Documentation

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.

Parameters:
[in]handleFSAL handle for the entry to be invalidated
[out]statusReturned status
Return values:
CACHE_INODE_SUCCESSif operation is a success
CACHE_INODE_INVALID_ARGUMENTbad parameter(s) as input
CACHE_INODE_NOT_FOUNDif entry is not cached
CACHE_INODE_STATE_CONFLICTif invalidating this entry would result is state conflict
CACHE_INODE_INCONSISTENT_ENTRYif entry is not consistent
Othererrors shows a FSAL error.

Definition at line 75 of file cache_inode_invalidate.c.