glock.c (d2137d5af4259f50c19addb8246a186c9ffac325) | glock.c (58a69cb47ec6991bf006a3e5d202e8571b0327a4) |
---|---|
1/* 2 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 3 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 4 * 5 * This copyrighted material is made available to anyone wishing to use, 6 * modify, copy, or redistribute it subject to the terms and conditions 7 * of the GNU General Public License version 2. 8 */ --- 1765 unchanged lines hidden (view full) --- 1774 } 1775#ifdef GL_HASH_LOCK_SZ 1776 for(i = 0; i < GL_HASH_LOCK_SZ; i++) { 1777 rwlock_init(&gl_hash_locks[i]); 1778 } 1779#endif 1780 1781 glock_workqueue = alloc_workqueue("glock_workqueue", WQ_MEM_RECLAIM | | 1/* 2 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 3 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 4 * 5 * This copyrighted material is made available to anyone wishing to use, 6 * modify, copy, or redistribute it subject to the terms and conditions 7 * of the GNU General Public License version 2. 8 */ --- 1765 unchanged lines hidden (view full) --- 1774 } 1775#ifdef GL_HASH_LOCK_SZ 1776 for(i = 0; i < GL_HASH_LOCK_SZ; i++) { 1777 rwlock_init(&gl_hash_locks[i]); 1778 } 1779#endif 1780 1781 glock_workqueue = alloc_workqueue("glock_workqueue", WQ_MEM_RECLAIM | |
1782 WQ_HIGHPRI | WQ_FREEZEABLE, 0); | 1782 WQ_HIGHPRI | WQ_FREEZABLE, 0); |
1783 if (IS_ERR(glock_workqueue)) 1784 return PTR_ERR(glock_workqueue); 1785 gfs2_delete_workqueue = alloc_workqueue("delete_workqueue", | 1783 if (IS_ERR(glock_workqueue)) 1784 return PTR_ERR(glock_workqueue); 1785 gfs2_delete_workqueue = alloc_workqueue("delete_workqueue", |
1786 WQ_MEM_RECLAIM | WQ_FREEZEABLE, | 1786 WQ_MEM_RECLAIM | WQ_FREEZABLE, |
1787 0); 1788 if (IS_ERR(gfs2_delete_workqueue)) { 1789 destroy_workqueue(glock_workqueue); 1790 return PTR_ERR(gfs2_delete_workqueue); 1791 } 1792 1793 register_shrinker(&glock_shrinker); 1794 --- 162 unchanged lines hidden --- | 1787 0); 1788 if (IS_ERR(gfs2_delete_workqueue)) { 1789 destroy_workqueue(glock_workqueue); 1790 return PTR_ERR(gfs2_delete_workqueue); 1791 } 1792 1793 register_shrinker(&glock_shrinker); 1794 --- 162 unchanged lines hidden --- |