Lines Matching defs:f2fs_sb_info

1552 struct f2fs_sb_info {  struct
1553 struct super_block *sb; /* pointer to VFS super block */
1554 struct proc_dir_entry *s_proc; /* proc entry */
1555 struct f2fs_super_block *raw_super; /* raw super block pointer */
1556 struct rw_semaphore sb_lock; /* lock for raw super block */
1557 int valid_super_block; /* valid super block no */
1558 unsigned long s_flag; /* flags for sbi */
1559 struct mutex writepages; /* mutex for writepages() */
1562 unsigned int blocks_per_blkz; /* F2FS blocks per zone */
1563 unsigned int log_blocks_per_blkz; /* log2 F2FS blocks per zone */
1567 struct f2fs_nm_info *nm_info; /* node manager */
1568 struct inode *node_inode; /* cache node blocks */
1571 struct f2fs_sm_info *sm_info; /* segment manager */
1574 struct f2fs_bio_info *write_io[NR_PAGE_TYPE]; /* for write bios */
1576 struct rw_semaphore io_order_lock;
1577 mempool_t *write_io_dummy; /* Dummy pages */
1580 struct f2fs_checkpoint *ckpt; /* raw checkpoint pointer */
1581 int cur_cp_pack; /* remain current cp pack */
1582 spinlock_t cp_lock; /* for flag in ckpt */
1583 struct inode *meta_inode; /* cache meta blocks */
1584 struct rw_semaphore cp_global_sem; /* checkpoint procedure lock */
1585 struct rw_semaphore cp_rwsem; /* blocking FS operations */
1586 struct rw_semaphore node_write; /* locking node writes */
1587 struct rw_semaphore node_change; /* locking node change */
1588 wait_queue_head_t cp_wait;
1589 unsigned long last_time[MAX_TIME]; /* to store time in jiffies */
1590 long interval_time[MAX_TIME]; /* to store thresholds */
1591 struct ckpt_req_control cprc_info; /* for checkpoint request control */
1593 struct inode_management im[MAX_INO_ENTRY]; /* manage inode cache */
1595 spinlock_t fsync_node_lock; /* for node entry lock */
1596 struct list_head fsync_node_list; /* node list head */
1597 unsigned int fsync_seg_id; /* sequence id */
1598 unsigned int fsync_node_num; /* number of node entries */
1601 unsigned int max_orphans; /* max orphan inodes */
1604 struct list_head inode_list[NR_INODE_TYPE]; /* dirty inode list */
1605 spinlock_t inode_lock[NR_INODE_TYPE]; /* for dirty inode list lock */
1606 struct mutex flush_lock; /* for flush exclusion */
1609 struct radix_tree_root extent_tree_root;/* cache extent cache entries */
1610 struct mutex extent_tree_lock; /* locking extent radix tree */
1611 struct list_head extent_list; /* lru list for shrinker */
1612 spinlock_t extent_lock; /* locking extent lru list */
1613 atomic_t total_ext_tree; /* extent tree count */
1614 struct list_head zombie_list; /* extent zombie tree list */
1615 atomic_t total_zombie_tree; /* extent zombie tree count */
1616 atomic_t total_ext_node; /* extent info count */
1619 unsigned int log_sectors_per_block; /* log2 sectors per block */
1620 unsigned int log_blocksize; /* log2 block size */
1621 unsigned int blocksize; /* block size */
1622 unsigned int root_ino_num; /* root inode number*/
1623 unsigned int node_ino_num; /* node inode number*/
1624 unsigned int meta_ino_num; /* meta inode number*/
1625 unsigned int log_blocks_per_seg; /* log2 blocks per segment */
1626 unsigned int blocks_per_seg; /* blocks per segment */
1627 unsigned int segs_per_sec; /* segments per section */
1628 unsigned int secs_per_zone; /* sections per zone */
1629 unsigned int total_sections; /* total section count */
1630 unsigned int total_node_count; /* total node block count */
1631 unsigned int total_valid_node_count; /* valid node block count */
1632 int dir_level; /* directory level */
1633 int readdir_ra; /* readahead inode in readdir */
1634 u64 max_io_bytes; /* max io bytes to merge IOs */
1636 block_t user_block_count; /* # of user blocks */
1637 block_t total_valid_block_count; /* # of valid blocks */
1638 block_t discard_blks; /* discard command candidats */
1639 block_t last_valid_block_count; /* for recovery */
1640 block_t reserved_blocks; /* configurable reserved blocks */
1641 block_t current_reserved_blocks; /* current reserved blocks */
1644 block_t unusable_block_count; /* # of blocks saved by last cp */
1646 unsigned int nquota_files; /* # of quota sysfile */
1647 struct rw_semaphore quota_sem; /* blocking cp for flags */
1650 atomic_t nr_pages[NR_COUNT_TYPE];
1652 struct percpu_counter alloc_valid_block_count;
1655 atomic_t wb_sync_req[META]; /* count # of WB_SYNC threads */
1658 struct percpu_counter total_valid_inode_count;
1660 struct f2fs_mount_info mount_opt; /* mount options */
1663 struct rw_semaphore gc_lock; /*
1667 struct f2fs_gc_kthread *gc_thread; /* GC thread */
1668 struct atgc_management am; /* atgc management */
1669 unsigned int cur_victim_sec; /* current victim section num */
1670 unsigned int gc_mode; /* current GC state */
1671 unsigned int next_victim_seg[2]; /* next segment in victim section */
1674 unsigned int atomic_files; /* # of opened atomic file */
1675 unsigned long long skipped_atomic_files[2]; /* FG_GC and BG_GC */
1676 unsigned long long skipped_gc_rwsem; /* FG_GC only */
1679 u64 gc_pin_file_threshold;
1680 struct rw_semaphore pin_sem;
1683 unsigned int max_victim_search;
1685 unsigned int migration_granularity;
1692 struct f2fs_stat_info *stat_info; /* FS status information */
1693 atomic_t meta_count[META_MAX]; /* # of meta blocks */
1694 unsigned int segment_count[2]; /* # of allocated segments */
1695 unsigned int block_count[2]; /* # of allocated blocks */
1696 atomic_t inplace_count; /* # of inplace update */
1697 atomic64_t total_hit_ext; /* # of lookup extent cache */
1698 atomic64_t read_hit_rbtree; /* # of hit rbtree extent node */
1699 atomic64_t read_hit_largest; /* # of hit largest extent node */
1700 atomic64_t read_hit_cached; /* # of hit cached extent node */
1701 atomic_t inline_xattr; /* # of inline_xattr inodes */
1702 atomic_t inline_inode; /* # of inline_data inodes */
1703 atomic_t inline_dir; /* # of inline_dentry inodes */
1704 atomic_t compr_inode; /* # of compressed inodes */
1705 atomic64_t compr_blocks; /* # of compressed blocks */
1706 atomic_t vw_cnt; /* # of volatile writes */
1707 atomic_t max_aw_cnt; /* max # of atomic writes */
1708 atomic_t max_vw_cnt; /* max # of volatile writes */
1709 unsigned int io_skip_bggc; /* skip background gc for in-flight IO */
1710 unsigned int other_skip_bggc; /* skip background gc for other reasons */
1711 unsigned int ndirty_inode[NR_INODE_TYPE]; /* # of dirty inodes */
1713 spinlock_t stat_lock; /* lock for stat operations */
1716 unsigned int data_io_flag;
1717 unsigned int node_io_flag;
1720 struct kobject s_kobj; /* /sys/fs/f2fs/<devname> */
1721 struct completion s_kobj_unregister;
1723 struct kobject s_stat_kobj; /* /sys/fs/f2fs/<devname>/stat */
1724 struct completion s_stat_kobj_unregister;
1726 struct kobject s_feature_list_kobj; /* /sys/fs/f2fs/<devname>/feature_list */
1727 struct completion s_feature_list_kobj_unregister;
1730 struct list_head s_list;
1731 int s_ndevs; /* number of devices */
1732 struct f2fs_dev_info *devs; /* for device list */
1733 unsigned int dirty_device; /* for checkpoint data flush */
1734 spinlock_t dev_lock; /* protect dirty_device */
1735 struct mutex umount_mutex;
1736 unsigned int shrinker_run_no;
1739 u64 sectors_written_start;
1740 u64 kbytes_written;
1743 struct crypto_shash *s_chksum_driver;
1746 __u32 s_chksum_seed;
1748 struct workqueue_struct *post_read_wq; /* post read workqueue */
1750 struct kmem_cache *inline_xattr_slab; /* inline xattr entry */
1751 unsigned int inline_xattr_slab_size; /* default inline xattr slab size */
1754 unsigned int gc_segment_mode; /* GC state for reclaimed segments */
1755 unsigned int gc_reclaimed_segs[MAX_GC_MODE]; /* Reclaimed segs for each mode */
1757 unsigned long seq_file_ra_mul; /* multiplier for ra_pages of seq. files in fadvise */
1760 struct kmem_cache *page_array_slab; /* page array entry */
1761 unsigned int page_array_slab_size; /* default page array slab size */
1764 u64 compr_written_block;
1765 u64 compr_saved_block;
1766 u32 compr_new_inode;
1769 struct inode *compress_inode; /* cache compressed blocks */
1770 unsigned int compress_percent; /* cache page percentage */
1771 unsigned int compress_watermark; /* cache page watermark */
1772 atomic_t compress_page_hit; /* cache hit count */
1777 spinlock_t iostat_lock;
1778 unsigned long long rw_iostat[NR_IO_TYPE];
1779 unsigned long long prev_rw_iostat[NR_IO_TYPE];
1803 static inline bool time_to_inject(struct f2fs_sb_info *sbi, int type) in time_to_inject() argument