diff options
Diffstat (limited to 'libglusterfs/src/xlator.c')
| -rw-r--r-- | libglusterfs/src/xlator.c | 19 | 
1 files changed, 19 insertions, 0 deletions
diff --git a/libglusterfs/src/xlator.c b/libglusterfs/src/xlator.c index 4f8b8b21f95..7b873fcc79d 100644 --- a/libglusterfs/src/xlator.c +++ b/libglusterfs/src/xlator.c @@ -291,6 +291,25 @@ xlator_set_type (xlator_t *xl, const char *type)          return ret;  } +void +xlator_set_inode_lru_limit (xlator_t *this, void *data) +{ +        int inode_lru_limit = 0; + +        if (this->itable) { +                if (!data) { +                        gf_log (this->name, GF_LOG_WARNING, "input data is " +                                "NULL. Cannot update the lru limit of the inode" +                                " table. Continuing with older value"); +                        goto out; +                } +                inode_lru_limit = *(int *)data; +                inode_table_set_lru_limit (this->itable, inode_lru_limit); +        } + +out: +        return; +}  void  xlator_foreach (xlator_t *this,  | 
