X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fafs%2Fcell.c;h=009a9ae88d61bfc4f415db9fc69a1d6741941d73;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=e7fd3cce44ee67d3fa0d0e123119251c120b92b8;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/fs/afs/cell.c b/fs/afs/cell.c index e7fd3cce4..009a9ae88 100644 --- a/fs/afs/cell.c +++ b/fs/afs/cell.c @@ -27,7 +27,7 @@ DECLARE_RWSEM(afs_proc_cells_sem); LIST_HEAD(afs_proc_cells); static struct list_head afs_cells = LIST_HEAD_INIT(afs_cells); -static rwlock_t afs_cells_lock = RW_LOCK_UNLOCKED; +static DEFINE_RWLOCK(afs_cells_lock); static DECLARE_RWSEM(afs_cells_sem); /* add/remove serialisation */ static struct afs_cell *afs_cell_root;