diff options
author | Poornima G <pgurusid@redhat.com> | 2015-02-19 04:49:35 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2015-03-02 20:28:48 -0800 |
commit | 5e12c658d6c2dc92fd336b745036641f054b3a40 (patch) | |
tree | fabceb17a37c21cddb3b245ccccda77a0a556a86 /libglusterfs/src/inode.h | |
parent | 7c44ac371cc7553bd8d29455dafc2c07cf5b96e1 (diff) |
libglusterfs: Add inode table cleanup APIs.
Took the inode context free code from the patch
http://review.gluster.org/#/c/4775/18/libglusterfs/src/inode.c
Change-Id: I05fc025763fe4ce61dc61503de27ec1d3a203e50
BUG: 1093594
Signed-off-by: Poornima G <pgurusid@redhat.com>
Reviewed-on: http://review.gluster.org/9700
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'libglusterfs/src/inode.h')
-rw-r--r-- | libglusterfs/src/inode.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libglusterfs/src/inode.h b/libglusterfs/src/inode.h index 5d373fcaec9..5c550bc648b 100644 --- a/libglusterfs/src/inode.h +++ b/libglusterfs/src/inode.h @@ -109,6 +109,12 @@ struct _inode { inode_table_t * inode_table_new (size_t lru_limit, xlator_t *xl); +void +inode_table_destroy_all (glusterfs_ctx_t *ctx); + +void +inode_table_destroy (inode_table_t *inode_table); + inode_t * inode_new (inode_table_t *table); @@ -135,6 +141,9 @@ int inode_forget (inode_t *inode, uint64_t nlookup); int +inode_ref_reduce_by_n (inode_t *inode, uint64_t nref); + +int inode_invalidate(inode_t *inode); int |