X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fsnapfs%2Fdcache.c;fp=lustre%2Fsnapfs%2Fdcache.c;h=0000000000000000000000000000000000000000;hb=113303973ec9f8484eb2355a1a6ef3c4c7fd6a56;hp=cf4337d46be4ffd5ffac9bb39a25912c74641284;hpb=272294dfa235dac803ed2d2b2ee8e0bd402622bb;p=fs%2Flustre-release.git diff --git a/lustre/snapfs/dcache.c b/lustre/snapfs/dcache.c deleted file mode 100644 index cf4337d..0000000 --- a/lustre/snapfs/dcache.c +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Directory operations for SnapFS filesystem - */ - -#define DEBUG_SUBSYSTEM S_SNAP - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "snapfs_internal.h" - - -/* called when a cache lookup succeeds */ - -/* XXX PJB: the intent here is to make sure that inodes which are - currently primary inodes under .snap directories are dropped when - they are COWED. It seems hard to me to get semantics that are equally - good as for mounted snap_clone file systems, but we should try to get - close -*/ -static int currentfs_dentry_revalidate(struct dentry *de, int flag) -{ -// struct inode *inode = de->d_inode; - ENTRY; - - /* unless an ancestor is a .snap directory there is nothing to do */ -#if 0 - if ( !currentfs_is_under_dotsnap(dentry) ) { - EXIT; - return 1; - } - /* XXX PJB get this to work guys! */ - if ( de->d_parent == "dotsnap inode" && - inode_is_newer_than(find_time_by_name(de->d_parent->d_name.name))){ - 1. drop this dentry - 2. make sure the VFS does a new lookup - 3. probably all you need to do is - return 0; - } -#else - RETURN(1); -#endif -} - -struct dentry_operations currentfs_dentry_ops = -{ - d_revalidate: currentfs_dentry_revalidate -}; -