summaryrefslogtreecommitdiffstats
path: root/xlators/features/upcall/src/upcall-cache-invalidation.h
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/upcall/src/upcall-cache-invalidation.h')
-rw-r--r--xlators/features/upcall/src/upcall-cache-invalidation.h26
1 files changed, 1 insertions, 25 deletions
diff --git a/xlators/features/upcall/src/upcall-cache-invalidation.h b/xlators/features/upcall/src/upcall-cache-invalidation.h
index 138595cecb6..c39962b68c4 100644
--- a/xlators/features/upcall/src/upcall-cache-invalidation.h
+++ b/xlators/features/upcall/src/upcall-cache-invalidation.h
@@ -35,7 +35,7 @@
invalidate the cache entry */
/* for fops - open, read, lk, */
-#define UP_IDEMPOTENT_FLAGS (UP_ATIME)
+#define UP_UPDATE_CLIENT (UP_ATIME)
/* for fop - write, truncate */
#define UP_WRITE_FLAGS (UP_SIZE | UP_TIMES)
@@ -53,30 +53,6 @@
/* for fop - unlink, link, rmdir, mkdir */
#define UP_NLINK_FLAGS (UP_NLINK | UP_TIMES)
-#define CACHE_INVALIDATE(frame, this, client, inode, p_flags) do { \
- \
- if (!is_cache_invalidation_enabled(this)) \
- break; \
- \
- (void)upcall_cache_invalidate (frame, this, client, \
- inode, p_flags); \
-} while (0)
-
-#define CACHE_INVALIDATE_DIR(frame, this, client, inode_p, p_flags) do {\
- \
- if (!is_cache_invalidation_enabled(this)) \
- break; \
- \
- dentry_t *dentry; \
- dentry_t *dentry_tmp; \
- list_for_each_entry_safe (dentry, dentry_tmp, \
- &inode_p->dentry_list, \
- inode_list) { \
- (void)upcall_cache_invalidate (frame, this, client, \
- dentry->inode, p_flags); \
- } \
-} while (0)
-
/* xlator options */
gf_boolean_t is_cache_invalidation_enabled(xlator_t *this);
int32_t get_cache_invalidation_timeout(xlator_t *this);