summaryrefslogtreecommitdiffstats
path: root/xlators/features/upcall/src/upcall-cache-invalidation.h
diff options
context:
space:
mode:
authorSoumya Koduri <skoduri@redhat.com>2015-04-30 11:34:14 +0530
committerKaleb KEITHLEY <kkeithle@redhat.com>2015-05-03 04:33:09 -0700
commitdfa3942f67e11ce0bef0975173f63932b0db3143 (patch)
tree4d8347b2de2fe9f31773eeb26bc677cfda4fe93a /xlators/features/upcall/src/upcall-cache-invalidation.h
parentdeedac1101c109895c9aff8e7a1171bea16a6d5e (diff)
Upcall: Handle missing fops in the upcall xlator
Change-Id: I968980dc4df458ec427e33503363bbd017e1163e BUG: 1200271 Signed-off-by: Soumya Koduri <skoduri@redhat.com> Reviewed-on: http://review.gluster.org/10194 Tested-by: NetBSD Build System Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Reviewed-by: Niels de Vos <ndevos@redhat.com>
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);