X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=fs%2Fquota%2Fdquot.c;h=7f30bdc57d13be7a86bb2e06c20c0e78ea3aa056;hb=82df9c8bebeff610705f30315f3903cbcb3aa58b;hp=9cd5f63715c0ece96c9e92191696997685a2a654;hpb=40a10fd740a4d5a9f3da255cf8dae48c6723d1a6;p=sfrench%2Fcifs-2.6.git diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index 9cd5f63715c0..7f30bdc57d13 100644 --- a/fs/quota/dquot.c +++ b/fs/quota/dquot.c @@ -702,6 +702,7 @@ dqcache_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) struct dquot *dquot; unsigned long freed = 0; + spin_lock(&dq_list_lock); head = free_dquots.prev; while (head != &free_dquots && sc->nr_to_scan) { dquot = list_entry(head, struct dquot, dq_free); @@ -713,6 +714,7 @@ dqcache_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) freed++; head = free_dquots.prev; } + spin_unlock(&dq_list_lock); return freed; }