the_nilfs.h (6b0f3393e38584ec22bab62fe01df58ae5a73ee7) | the_nilfs.h (572d8b3945a31bee7c40d21556803e4807fd9141) |
---|---|
1/* 2 * the_nilfs.h - 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 --- 33 unchanged lines hidden (view full) --- 42 THE_NILFS_SB_DIRTY, /* super block is dirty */ 43}; 44 45/** 46 * struct the_nilfs - struct to supervise multiple nilfs mount points 47 * @ns_flags: flags 48 * @ns_bdev: block device 49 * @ns_sem: semaphore for shared states | 1/* 2 * the_nilfs.h - 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 --- 33 unchanged lines hidden (view full) --- 42 THE_NILFS_SB_DIRTY, /* super block is dirty */ 43}; 44 45/** 46 * struct the_nilfs - struct to supervise multiple nilfs mount points 47 * @ns_flags: flags 48 * @ns_bdev: block device 49 * @ns_sem: semaphore for shared states |
50 * @ns_snapshot_mount_mutex: mutex to protect snapshot mounts |
|
50 * @ns_sbh: buffer heads of on-disk super blocks 51 * @ns_sbp: pointers to super block data 52 * @ns_sbwtime: previous write time of super block 53 * @ns_sbwcount: write count of super block 54 * @ns_sbsize: size of valid data in super block 55 * @ns_mount_state: file system state 56 * @ns_seg_seq: segment sequence counter 57 * @ns_segnum: index number of the latest full segment. --- 37 unchanged lines hidden (view full) --- 95 * @ns_first_ino: first not-special inode number 96 * @ns_crc_seed: seed value of CRC32 calculation 97 */ 98struct the_nilfs { 99 unsigned long ns_flags; 100 101 struct block_device *ns_bdev; 102 struct rw_semaphore ns_sem; | 51 * @ns_sbh: buffer heads of on-disk super blocks 52 * @ns_sbp: pointers to super block data 53 * @ns_sbwtime: previous write time of super block 54 * @ns_sbwcount: write count of super block 55 * @ns_sbsize: size of valid data in super block 56 * @ns_mount_state: file system state 57 * @ns_seg_seq: segment sequence counter 58 * @ns_segnum: index number of the latest full segment. --- 37 unchanged lines hidden (view full) --- 96 * @ns_first_ino: first not-special inode number 97 * @ns_crc_seed: seed value of CRC32 calculation 98 */ 99struct the_nilfs { 100 unsigned long ns_flags; 101 102 struct block_device *ns_bdev; 103 struct rw_semaphore ns_sem; |
104 struct mutex ns_snapshot_mount_mutex; |
|
103 104 /* 105 * used for 106 * - loading the latest checkpoint exclusively. 107 * - allocating a new full segment. 108 * - protecting s_dirt in the super_block struct 109 * (see nilfs_write_super) and the following fields. 110 */ --- 247 unchanged lines hidden --- | 105 106 /* 107 * used for 108 * - loading the latest checkpoint exclusively. 109 * - allocating a new full segment. 110 * - protecting s_dirt in the super_block struct 111 * (see nilfs_write_super) and the following fields. 112 */ --- 247 unchanged lines hidden --- |