diff --git a/src/afs/LINUX/osi_module.c b/src/afs/LINUX/osi_module.c index 28c563da84..a7b59d66ea 100644 --- a/src/afs/LINUX/osi_module.c +++ b/src/afs/LINUX/osi_module.c @@ -80,9 +80,6 @@ afs_init(void) #endif osi_proc_init(); osi_ioctl_init(); -#if defined(AFS_CACHE_BYPASS) - afs_warn("Cache bypass patched libafs module init.\n"); -#endif afs_init_pagecopy(); return 0; @@ -91,10 +88,6 @@ afs_init(void) void __exit afs_cleanup(void) { -#if defined(AFS_CACHE_BYPASS) - afs_warn("Cache bypass patched libafs module cleaning up.\n"); -#endif - afs_shutdown_pagecopy(); #ifdef LINUX_KEYRING_SUPPORT diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index b4794756ea..c13bfd99d2 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -33,10 +33,8 @@ #include #include #include -#if defined(AFS_CACHE_BYPASS) #include "afs/lock.h" #include "afs/afs_bypasscache.h" -#endif #include "osi_compat.h" #include "osi_pagecopy.h" @@ -587,9 +585,7 @@ afs_linux_flush(struct file *fp) struct vcache *vcp; cred_t *credp; int code; -#if defined(AFS_CACHE_BYPASS) int bypasscache = 0; -#endif AFS_GLOCK(); @@ -606,7 +602,6 @@ afs_linux_flush(struct file *fp) code = afs_InitReq(&treq, credp); if (code) goto out; -#if defined(AFS_CACHE_BYPASS) /* If caching is bypassed for this file, or globally, just return 0 */ if (cache_bypass_strategy == ALWAYS_BYPASS_CACHE) bypasscache = 1; @@ -621,7 +616,6 @@ afs_linux_flush(struct file *fp) code = 0; goto out; } -#endif ObtainSharedLock(&vcp->lock, 535); if ((vcp->execsOrWriters > 0) && (file_count(fp) == 1)) { @@ -1402,9 +1396,6 @@ out: #endif /* USABLE_KERNEL_PAGE_SYMLINK_CACHE */ -#if defined(AFS_CACHE_BYPASS) -#endif /* defined(AFS_CACHE_BYPASS */ - /* Populate a page by filling it from the cache file pointed at by cachefp * (which contains indicated chunk) * If task is NULL, the page copy occurs syncronously, and the routine @@ -1705,8 +1696,6 @@ afs_linux_prefetch(struct file *fp, struct page *pp) } -#if defined(AFS_CACHE_BYPASS) - static int afs_linux_bypass_readpages(struct file *fp, struct address_space *mapping, struct list_head *page_list, unsigned num_pages) @@ -1903,21 +1892,6 @@ afs_linux_bypass_check(struct inode *ip) { return bypass; } -#else -static inline int -afs_linux_bypass_check(struct inode *ip) { - return 0; -} -static inline int -afs_linux_bypass_readpage(struct file *fp, struct page *pp) { - return 0; -} -static inline int -afs_linux_bypass_readpages(struct file *fp, struct address_space *mapping, - struct list_head *page_list, unsigned int num_pages) { - return 0; -} -#endif static int afs_linux_readpage(struct file *fp, struct page *pp)