the_nilfs.c (e644dae645e167d154c0526358940986682a72b0) | the_nilfs.c (572d8b3945a31bee7c40d21556803e4807fd9141) |
---|---|
1/* 2 * the_nilfs.c - the_nilfs shared structure. 3 * 4 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 62 unchanged lines hidden (view full) --- 71 72 nilfs = kzalloc(sizeof(*nilfs), GFP_KERNEL); 73 if (!nilfs) 74 return NULL; 75 76 nilfs->ns_bdev = bdev; 77 atomic_set(&nilfs->ns_ndirtyblks, 0); 78 init_rwsem(&nilfs->ns_sem); | 1/* 2 * the_nilfs.c - the_nilfs shared structure. 3 * 4 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 62 unchanged lines hidden (view full) --- 71 72 nilfs = kzalloc(sizeof(*nilfs), GFP_KERNEL); 73 if (!nilfs) 74 return NULL; 75 76 nilfs->ns_bdev = bdev; 77 atomic_set(&nilfs->ns_ndirtyblks, 0); 78 init_rwsem(&nilfs->ns_sem); |
79 mutex_init(&nilfs->ns_snapshot_mount_mutex); |
|
79 INIT_LIST_HEAD(&nilfs->ns_dirty_files); 80 INIT_LIST_HEAD(&nilfs->ns_gc_inodes); 81 spin_lock_init(&nilfs->ns_inode_lock); 82 spin_lock_init(&nilfs->ns_next_gen_lock); 83 spin_lock_init(&nilfs->ns_last_segment_lock); 84 nilfs->ns_cptree = RB_ROOT; 85 spin_lock_init(&nilfs->ns_cptree_lock); 86 init_rwsem(&nilfs->ns_segctor_sem); --- 704 unchanged lines hidden --- | 80 INIT_LIST_HEAD(&nilfs->ns_dirty_files); 81 INIT_LIST_HEAD(&nilfs->ns_gc_inodes); 82 spin_lock_init(&nilfs->ns_inode_lock); 83 spin_lock_init(&nilfs->ns_next_gen_lock); 84 spin_lock_init(&nilfs->ns_last_segment_lock); 85 nilfs->ns_cptree = RB_ROOT; 86 spin_lock_init(&nilfs->ns_cptree_lock); 87 init_rwsem(&nilfs->ns_segctor_sem); --- 704 unchanged lines hidden --- |