int xfs_filestream_mount( xfs_mount_t *mp) { /* * The filestream timer tunable is currently fixed within the range of * one second to four minutes, with five seconds being the default. The * group count is somewhat arbitrary, but it'd be nice to adhere to the * timer tunable to within about 10 percent. This requires at least 10 * groups. */ return xfs_mru_cache_create(&mp->m_filestream, xfs_fstrm_centisecs * 10, 10, xfs_fstrm_free_func); }
int xfs_filestream_mount( xfs_mount_t *mp) { int err; unsigned int lifetime, grp_count; lifetime = xfs_fstrm_centisecs * 10; grp_count = 10; err = xfs_mru_cache_create(&mp->m_filestream, lifetime, grp_count, xfs_fstrm_free_func); return err; }