linux/fs/coda/cache.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Cache operations for Coda.
 * For Linux 2.1: (C) 1997 Carnegie Mellon University
 * For Linux 2.3: (C) 2000 Carnegie Mellon University
 *
 * Carnegie Mellon encourages users of this code to contribute improvements
 * to the Coda project http://www.coda.cs.cmu.edu/ <[email protected]>.
 */

#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/time.h>
#include <linux/fs.h>
#include <linux/stat.h>
#include <linux/errno.h>
#include <linux/uaccess.h>
#include <linux/string.h>
#include <linux/list.h>
#include <linux/sched.h>
#include <linux/spinlock.h>

#include <linux/coda.h>
#include "coda_psdev.h"
#include "coda_linux.h"
#include "coda_cache.h"

static atomic_t permission_epoch =;

/* replace or extend an acl cache hit */
void coda_cache_enter(struct inode *inode, int mask)
{}

/* remove cached acl from an inode */
void coda_cache_clear_inode(struct inode *inode)
{}

/* remove all acl caches */
void coda_cache_clear_all(struct super_block *sb)
{}


/* check if the mask has been matched against the acl already */
int coda_cache_check(struct inode *inode, int mask)
{}


/* Purging dentries and children */
/* The following routines drop dentries which are not
   in use and flag dentries which are in use to be 
   zapped later.

   The flags are detected by:
   - coda_dentry_revalidate (for lookups) if the flag is C_PURGE
   - coda_dentry_delete: to remove dentry from the cache when d_count
     falls to zero
   - an inode method coda_revalidate (for attributes) if the 
     flag is C_VATTR
*/

/* this won't do any harm: just flag all children */
static void coda_flag_children(struct dentry *parent, int flag)
{}

void coda_flag_inode_children(struct inode *inode, int flag)
{}