Changeset View
Changeset View
Standalone View
Standalone View
sys/ufs/ffs/ffs_extern.h
Show First 20 Lines • Show All 168 Lines • ▼ Show 20 Lines | |||||
#define FLUSH_BLOCKS 3 | #define FLUSH_BLOCKS 3 | ||||
#define FLUSH_BLOCKS_WAIT 4 | #define FLUSH_BLOCKS_WAIT 4 | ||||
/* | /* | ||||
* Flag to ffs_syncvnode() to request flushing of data only, | * Flag to ffs_syncvnode() to request flushing of data only, | ||||
* but skip the ffs_update() on the inode itself. Used to avoid | * but skip the ffs_update() on the inode itself. Used to avoid | ||||
* deadlock when flushing snapshot inodes while holding snaplk. | * deadlock when flushing snapshot inodes while holding snaplk. | ||||
*/ | */ | ||||
#define NO_INO_UPDT 0x00000001 | #define NO_INO_UPDT 0x00000001 | ||||
/* | |||||
* Request data sync only from ffs_syncvnode(), not touching even more | |||||
* metadata than NO_INO_UPDT. | |||||
*/ | |||||
#define DATA_ONLY 0x00000002 | |||||
int ffs_rdonly(struct inode *); | int ffs_rdonly(struct inode *); | ||||
TAILQ_HEAD(snaphead, inode); | TAILQ_HEAD(snaphead, inode); | ||||
struct snapdata { | struct snapdata { | ||||
LIST_ENTRY(snapdata) sn_link; | LIST_ENTRY(snapdata) sn_link; | ||||
struct snaphead sn_head; | struct snaphead sn_head; | ||||
daddr_t sn_listsize; | daddr_t sn_listsize; | ||||
daddr_t *sn_blklist; | daddr_t *sn_blklist; | ||||
struct lock sn_lock; | struct lock sn_lock; | ||||
}; | }; | ||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#endif /* !_UFS_FFS_EXTERN_H */ | #endif /* !_UFS_FFS_EXTERN_H */ |