Lines Matching defs:shared

233 	parent->shared = NULL;
385 .shared = 1,
688 * Stuff objects into the remote nodes shared array first.
692 if (n->shared)
693 transfer_objects(n->shared, ac, ac->limit);
883 if (cachep->shared) {
885 cachep->shared * cachep->batchcount, 0xbaadf00d, gfp);
896 if (n->shared && force_change) {
897 free_block(cachep, n->shared->entry,
898 n->shared->avail, node, &list);
899 n->shared->avail = 0;
902 if (!n->shared || force_change) {
903 old_shared = n->shared;
904 n->shared = new_shared;
917 * To protect lockless access to n->shared during irq disabled context.
918 * If n->shared isn't NULL in irq disabled context, accessing to it is
944 struct array_cache *shared;
967 shared = n->shared;
968 if (shared) {
969 free_block(cachep, shared->entry,
970 shared->avail, node, &list);
971 n->shared = NULL;
979 kfree(shared);
1018 * Now we can go ahead with allocating the shared arrays and
2157 drain_array_locked(cachep, n->shared, node, true, &list);
2252 kfree(n->shared);
2861 struct array_cache *ac, *shared;
2882 shared = READ_ONCE(n->shared);
2883 if (!n->free_objects && (!shared || !shared->avail))
2887 shared = READ_ONCE(n->shared);
2889 /* See if we can refill from the shared array */
2890 if (shared && transfer_objects(ac, shared, batchcount)) {
2891 shared->touched = 1;
3310 if (n->shared) {
3311 struct array_cache *shared_array = n->shared;
3650 kfree(n->shared);
3663 int batchcount, int shared, gfp_t gfp)
3684 cachep->shared = shared;
3713 int shared = 0;
3744 * cpus is necessary. This is provided by a shared array. The array
3749 shared = 0;
3751 shared = 8;
3762 err = do_tune_cpucache(cachep, limit, batchcount, shared, gfp);
3773 * if drain_array() is used on the shared array.
3780 /* ac from n->shared can be freed if we don't hold the slab_mutex. */
3844 drain_array(searchp, n, n->shared, node);
3883 if (n->shared)
3884 shared_avail += n->shared->avail;
3899 sinfo->shared = cachep->shared;
3950 int limit, batchcount, shared, res;
3964 if (sscanf(tmp, " %d %d %d", &limit, &batchcount, &shared) != 3)
3973 batchcount > limit || shared < 0) {
3977 batchcount, shared,