diff options
Diffstat (limited to 'fs/afs/internal.h')
-rw-r--r-- | fs/afs/internal.h | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/fs/afs/internal.h b/fs/afs/internal.h index d90c158cd934..9feb5c59d8fc 100644 --- a/fs/afs/internal.h +++ b/fs/afs/internal.h | |||
@@ -433,10 +433,6 @@ extern const struct file_operations afs_file_operations; | |||
433 | extern int afs_open(struct inode *, struct file *); | 433 | extern int afs_open(struct inode *, struct file *); |
434 | extern int afs_release(struct inode *, struct file *); | 434 | extern int afs_release(struct inode *, struct file *); |
435 | 435 | ||
436 | #ifdef AFS_CACHING_SUPPORT | ||
437 | extern int afs_cache_get_page_cookie(struct page *, struct cachefs_page **); | ||
438 | #endif | ||
439 | |||
440 | /* | 436 | /* |
441 | * fsclient.c | 437 | * fsclient.c |
442 | */ | 438 | */ |
@@ -474,10 +470,9 @@ extern int afs_fs_rename(struct afs_server *, struct key *, | |||
474 | extern struct inode *afs_iget(struct super_block *, struct key *, | 470 | extern struct inode *afs_iget(struct super_block *, struct key *, |
475 | struct afs_fid *, struct afs_file_status *, | 471 | struct afs_fid *, struct afs_file_status *, |
476 | struct afs_callback *); | 472 | struct afs_callback *); |
473 | extern void afs_zap_data(struct afs_vnode *); | ||
477 | extern int afs_validate(struct afs_vnode *, struct key *); | 474 | extern int afs_validate(struct afs_vnode *, struct key *); |
478 | extern int afs_inode_getattr(struct vfsmount *, struct dentry *, | 475 | extern int afs_getattr(struct vfsmount *, struct dentry *, struct kstat *); |
479 | struct kstat *); | ||
480 | extern void afs_zap_permits(struct rcu_head *); | ||
481 | extern void afs_clear_inode(struct inode *); | 476 | extern void afs_clear_inode(struct inode *); |
482 | 477 | ||
483 | /* | 478 | /* |
@@ -533,6 +528,7 @@ extern int afs_extract_data(struct afs_call *, struct sk_buff *, bool, void *, | |||
533 | */ | 528 | */ |
534 | extern void afs_clear_permits(struct afs_vnode *); | 529 | extern void afs_clear_permits(struct afs_vnode *); |
535 | extern void afs_cache_permit(struct afs_vnode *, struct key *, long); | 530 | extern void afs_cache_permit(struct afs_vnode *, struct key *, long); |
531 | extern void afs_zap_permits(struct rcu_head *); | ||
536 | extern struct key *afs_request_key(struct afs_cell *); | 532 | extern struct key *afs_request_key(struct afs_cell *); |
537 | extern int afs_permission(struct inode *, int, struct nameidata *); | 533 | extern int afs_permission(struct inode *, int, struct nameidata *); |
538 | 534 | ||
@@ -726,6 +722,21 @@ do { \ | |||
726 | } \ | 722 | } \ |
727 | } while(0) | 723 | } while(0) |
728 | 724 | ||
725 | #define ASSERTRANGE(L, OP1, N, OP2, H) \ | ||
726 | do { \ | ||
727 | if (unlikely(!((L) OP1 (N)) || !((N) OP2 (H)))) { \ | ||
728 | printk(KERN_ERR "\n"); \ | ||
729 | printk(KERN_ERR "AFS: Assertion failed\n"); \ | ||
730 | printk(KERN_ERR "%lu "#OP1" %lu "#OP2" %lu is false\n", \ | ||
731 | (unsigned long)(L), (unsigned long)(N), \ | ||
732 | (unsigned long)(H)); \ | ||
733 | printk(KERN_ERR "0x%lx "#OP1" 0x%lx "#OP2" 0x%lx is false\n", \ | ||
734 | (unsigned long)(L), (unsigned long)(N), \ | ||
735 | (unsigned long)(H)); \ | ||
736 | BUG(); \ | ||
737 | } \ | ||
738 | } while(0) | ||
739 | |||
729 | #define ASSERTIF(C, X) \ | 740 | #define ASSERTIF(C, X) \ |
730 | do { \ | 741 | do { \ |
731 | if (unlikely((C) && !(X))) { \ | 742 | if (unlikely((C) && !(X))) { \ |
@@ -758,6 +769,10 @@ do { \ | |||
758 | do { \ | 769 | do { \ |
759 | } while(0) | 770 | } while(0) |
760 | 771 | ||
772 | #define ASSERTRANGE(L, OP1, N, OP2, H) \ | ||
773 | do { \ | ||
774 | } while(0) | ||
775 | |||
761 | #define ASSERTIF(C, X) \ | 776 | #define ASSERTIF(C, X) \ |
762 | do { \ | 777 | do { \ |
763 | } while(0) | 778 | } while(0) |