Lines Matching defs:shared

233 	parent->shared = NULL;
385 .shared = 1,
703 * Stuff objects into the remote nodes shared array first.
707 if (n->shared)
708 transfer_objects(n->shared, ac, ac->limit);
898 if (cachep->shared) {
900 cachep->shared * cachep->batchcount, 0xbaadf00d, gfp);
911 if (n->shared && force_change) {
912 free_block(cachep, n->shared->entry,
913 n->shared->avail, node, &list);
914 n->shared->avail = 0;
917 if (!n->shared || force_change) {
918 old_shared = n->shared;
919 n->shared = new_shared;
932 * To protect lockless access to n->shared during irq disabled context.
933 * If n->shared isn't NULL in irq disabled context, accessing to it is
959 struct array_cache *shared;
982 shared = n->shared;
983 if (shared) {
984 free_block(cachep, shared->entry,
985 shared->avail, node, &list);
986 n->shared = NULL;
994 kfree(shared);
1033 * Now we can go ahead with allocating the shared arrays and
2177 drain_array_locked(cachep, n->shared, node, true, &list);
2270 kfree(n->shared);
2901 struct array_cache *ac, *shared;
2922 shared = READ_ONCE(n->shared);
2923 if (!n->free_objects && (!shared || !shared->avail))
2927 shared = READ_ONCE(n->shared);
2929 /* See if we can refill from the shared array */
2930 if (shared && transfer_objects(ac, shared, batchcount)) {
2931 shared->touched = 1;
3377 if (n->shared) {
3378 struct array_cache *shared_array = n->shared;
3787 kfree(n->shared);
3800 int batchcount, int shared, gfp_t gfp)
3821 cachep->shared = shared;
3850 int shared = 0;
3857 if (limit && shared && batchcount)
3883 * cpus is necessary. This is provided by a shared array. The array
3888 shared = 0;
3890 shared = 8;
3902 err = do_tune_cpucache(cachep, limit, batchcount, shared, gfp);
3913 * if drain_array() is used on the shared array.
3920 /* ac from n->shared can be freed if we don't hold the slab_mutex. */
3984 drain_array(searchp, n, n->shared, node);
4023 if (n->shared)
4024 shared_avail += n->shared->avail;
4039 sinfo->shared = cachep->shared;
4090 int limit, batchcount, shared, res;
4104 if (sscanf(tmp, " %d %d %d", &limit, &batchcount, &shared) != 3)
4113 batchcount > limit || shared < 0) {
4117 batchcount, shared,