Lines Matching defs:logfs_super

323 struct logfs_super {  struct
324 struct mtd_info *s_mtd; /* underlying device */
325 struct block_device *s_bdev; /* underlying device */
326 const struct logfs_device_ops *s_devops;/* device access */
327 struct inode *s_master_inode; /* inode file */
328 struct inode *s_segfile_inode; /* segment file */
329 struct inode *s_mapping_inode; /* device mapping */
330 atomic_t s_pending_writes; /* outstanting bios */
331 long s_flags;
332 mempool_t *s_btree_pool; /* for btree nodes */
333 mempool_t *s_alias_pool; /* aliases in segment.c */
334 u64 s_feature_incompat;
335 u64 s_feature_ro_compat;
336 u64 s_feature_compat;
337 u64 s_feature_flags;
338 u64 s_sb_ofs[2];
339 struct page *s_erase_page; /* for dev_bdev.c */
341 struct btree_head32 s_segment_alias; /* remapped segments */
342 int s_no_object_aliases;
343 struct list_head s_object_alias; /* remapped objects */
344 struct btree_head128 s_object_alias_tree; /* remapped objects */
345 struct mutex s_object_alias_mutex;
347 struct mutex s_dirop_mutex; /* for creat/unlink/rename */
348 u64 s_victim_ino; /* used for atomic dir-ops */
349 u64 s_rename_dir; /* source directory ino */
350 u64 s_rename_pos; /* position of source dd */
352 long s_segsize; /* size of a segment */
353 int s_segshift; /* log2 of segment size */
354 long s_segmask; /* 1 << s_segshift - 1 */
355 long s_no_segs; /* segments on device */
356 long s_no_journal_segs; /* segments used for journal */
357 long s_no_blocks; /* blocks per segment */
358 long s_writesize; /* minimum write size */
359 int s_writeshift; /* log2 of write size */
360 u64 s_size; /* filesystem size */
361 struct logfs_area *s_area[LOGFS_NO_AREAS]; /* open segment array */
362 u64 s_gec; /* global erase count */
363 u64 s_wl_gec_ostore; /* time of last wl event */
364 u64 s_wl_gec_journal; /* time of last wl event */
365 u64 s_sweeper; /* current sweeper pos */
366 u8 s_ifile_levels; /* max level of ifile */
367 u8 s_iblock_levels; /* max level of regular files */
368 u8 s_data_levels; /* # of segments to leaf block*/
369 u8 s_total_levels; /* sum of above three */
370 struct btree_head32 s_cand_tree; /* all candidates */
371 struct candidate_list s_free_list; /* 100% free segments */
372 struct candidate_list s_reserve_list; /* Bad segment reserve */
373 struct candidate_list s_low_list[LOGFS_NO_AREAS];/* good candidates */
374 struct candidate_list s_ec_list; /* wear level candidates */
375 struct btree_head32 s_reserved_segments;/* sb, journal, bad, etc. */
377 u64 s_last_ino; /* highest ino used */
378 long s_inos_till_wrap;
379 u32 s_generation; /* i_generation for new files */
380 struct list_head s_freeing_list; /* inodes being freed */
382 struct mutex s_journal_mutex;
383 void *s_je; /* journal entry to compress */
384 void *s_compressed_je; /* block to write to journal */
385 u32 s_journal_seg[LOGFS_JOURNAL_SEGS]; /* journal segments */
386 u32 s_journal_ec[LOGFS_JOURNAL_SEGS]; /* journal erasecounts */
387 u64 s_last_version;
388 struct logfs_area *s_journal_area; /* open journal segment */
389 __be64 s_je_array[MAX_JOURNAL_ENTRIES];
390 int s_no_je;
392 int s_sum_index; /* for the 12 summaries */
393 struct shadow_tree s_shadow_tree;
394 int s_je_fill; /* index of current je */
396 struct mutex s_write_mutex;
397 int s_lock_count;
398 mempool_t *s_block_pool; /* struct logfs_block pool */
399 mempool_t *s_shadow_pool; /* struct logfs_shadow pool */
400 struct list_head s_writeback_list; /* writeback pages */
425 u64 s_free_bytes;
426 u64 s_used_bytes;
427 u64 s_dirty_free_bytes;
428 u64 s_dirty_used_bytes;
429 u64 s_root_reserve;
430 u64 s_speed_reserve;
431 u64 s_dirty_pages;
438 u32 s_bad_seg_reserve;
439 u32 s_bad_segments;
628 static inline struct logfs_super *logfs_super(struct super_block *sb) in logfs_super() function