Lines Matching defs:f2fs_sb_info
1512 struct f2fs_sb_info { struct
1513 struct super_block *sb; /* pointer to VFS super block */
1514 struct proc_dir_entry *s_proc; /* proc entry */
1515 struct f2fs_super_block *raw_super; /* raw super block pointer */
1516 struct f2fs_rwsem sb_lock; /* lock for raw super block */
1517 int valid_super_block; /* valid super block no */
1518 unsigned long s_flag; /* flags for sbi */
1519 struct mutex writepages; /* mutex for writepages() */
1522 unsigned int blocks_per_blkz; /* F2FS blocks per zone */
1526 struct f2fs_nm_info *nm_info; /* node manager */
1527 struct inode *node_inode; /* cache node blocks */
1530 struct f2fs_sm_info *sm_info; /* segment manager */
1533 struct f2fs_bio_info *write_io[NR_PAGE_TYPE]; /* for write bios */
1535 struct f2fs_rwsem io_order_lock;
1536 mempool_t *write_io_dummy; /* Dummy pages */
1537 pgoff_t page_eio_ofs[NR_PAGE_TYPE]; /* EIO page offset */
1538 int page_eio_cnt[NR_PAGE_TYPE]; /* EIO count */
1541 struct f2fs_checkpoint *ckpt; /* raw checkpoint pointer */
1542 int cur_cp_pack; /* remain current cp pack */
1543 spinlock_t cp_lock; /* for flag in ckpt */
1544 struct inode *meta_inode; /* cache meta blocks */
1545 struct f2fs_rwsem cp_global_sem; /* checkpoint procedure lock */
1546 struct f2fs_rwsem cp_rwsem; /* blocking FS operations */
1547 struct f2fs_rwsem node_write; /* locking node writes */
1548 struct f2fs_rwsem node_change; /* locking node change */
1549 wait_queue_head_t cp_wait;
1550 unsigned long last_time[MAX_TIME]; /* to store time in jiffies */
1551 long interval_time[MAX_TIME]; /* to store thresholds */
1552 struct ckpt_req_control cprc_info; /* for checkpoint request control */
1554 struct inode_management im[MAX_INO_ENTRY]; /* manage inode cache */
1556 spinlock_t fsync_node_lock; /* for node entry lock */
1557 struct list_head fsync_node_list; /* node list head */
1558 unsigned int fsync_seg_id; /* sequence id */
1559 unsigned int fsync_node_num; /* number of node entries */
1562 unsigned int max_orphans; /* max orphan inodes */
1565 struct list_head inode_list[NR_INODE_TYPE]; /* dirty inode list */
1566 spinlock_t inode_lock[NR_INODE_TYPE]; /* for dirty inode list lock */
1567 struct mutex flush_lock; /* for flush exclusion */
1570 struct extent_tree_info extent_tree[NR_EXTENT_CACHES];
1571 atomic64_t allocated_data_blocks; /* for block age extent_cache */
1574 unsigned int hot_data_age_threshold;
1575 unsigned int warm_data_age_threshold;
1576 unsigned int last_age_weight;
1579 unsigned int log_sectors_per_block; /* log2 sectors per block */
1580 unsigned int log_blocksize; /* log2 block size */
1581 unsigned int blocksize; /* block size */
1582 unsigned int root_ino_num; /* root inode number*/
1583 unsigned int node_ino_num; /* node inode number*/
1584 unsigned int meta_ino_num; /* meta inode number*/
1585 unsigned int log_blocks_per_seg; /* log2 blocks per segment */
1586 unsigned int blocks_per_seg; /* blocks per segment */
1587 unsigned int unusable_blocks_per_sec; /* unusable blocks per section */
1588 unsigned int segs_per_sec; /* segments per section */
1589 unsigned int secs_per_zone; /* sections per zone */
1590 unsigned int total_sections; /* total section count */
1591 unsigned int total_node_count; /* total node block count */
1592 unsigned int total_valid_node_count; /* valid node block count */
1593 int dir_level; /* directory level */
1594 bool readdir_ra; /* readahead inode in readdir */
1595 u64 max_io_bytes; /* max io bytes to merge IOs */
1597 block_t user_block_count; /* # of user blocks */
1598 block_t total_valid_block_count; /* # of valid blocks */
1599 block_t discard_blks; /* discard command candidats */
1600 block_t last_valid_block_count; /* for recovery */
1601 block_t reserved_blocks; /* configurable reserved blocks */
1602 block_t current_reserved_blocks; /* current reserved blocks */
1605 block_t unusable_block_count; /* # of blocks saved by last cp */
1607 unsigned int nquota_files; /* # of quota sysfile */
1608 struct f2fs_rwsem quota_sem; /* blocking cp for flags */
1611 atomic_t nr_pages[NR_COUNT_TYPE];
1613 struct percpu_counter alloc_valid_block_count;
1615 struct percpu_counter rf_node_block_count;
1618 atomic_t wb_sync_req[META]; /* count # of WB_SYNC threads */
1621 struct percpu_counter total_valid_inode_count;
1623 struct f2fs_mount_info mount_opt; /* mount options */
1626 struct f2fs_rwsem gc_lock; /*
1630 struct f2fs_gc_kthread *gc_thread; /* GC thread */
1631 struct atgc_management am; /* atgc management */
1632 unsigned int cur_victim_sec; /* current victim section num */
1633 unsigned int gc_mode; /* current GC state */
1634 unsigned int next_victim_seg[2]; /* next segment in victim section */
1635 spinlock_t gc_remaining_trials_lock;
1637 unsigned int gc_remaining_trials;
1640 unsigned long long skipped_gc_rwsem; /* FG_GC only */
1643 u64 gc_pin_file_threshold;
1644 struct f2fs_rwsem pin_sem;
1647 unsigned int max_victim_search;
1649 unsigned int migration_granularity;
1656 struct f2fs_stat_info *stat_info; /* FS status information */
1657 atomic_t meta_count[META_MAX]; /* # of meta blocks */
1658 unsigned int segment_count[2]; /* # of allocated segments */
1659 unsigned int block_count[2]; /* # of allocated blocks */
1660 atomic_t inplace_count; /* # of inplace update */
1662 atomic64_t total_hit_ext[NR_EXTENT_CACHES];
1664 atomic64_t read_hit_rbtree[NR_EXTENT_CACHES];
1666 atomic64_t read_hit_cached[NR_EXTENT_CACHES];
1668 atomic64_t read_hit_largest;
1669 atomic_t inline_xattr; /* # of inline_xattr inodes */
1670 atomic_t inline_inode; /* # of inline_data inodes */
1671 atomic_t inline_dir; /* # of inline_dentry inodes */
1672 atomic_t compr_inode; /* # of compressed inodes */
1673 atomic64_t compr_blocks; /* # of compressed blocks */
1674 atomic_t swapfile_inode; /* # of swapfile inodes */
1675 atomic_t atomic_files; /* # of opened atomic file */
1676 atomic_t max_aw_cnt; /* max # of atomic writes */
1677 unsigned int io_skip_bggc; /* skip background gc for in-flight IO */
1678 unsigned int other_skip_bggc; /* skip background gc for other reasons */
1679 unsigned int ndirty_inode[NR_INODE_TYPE]; /* # of dirty inodes */
1681 spinlock_t stat_lock; /* lock for stat operations */
1684 unsigned int data_io_flag;
1685 unsigned int node_io_flag;
1688 struct kobject s_kobj; /* /sys/fs/f2fs/<devname> */
1689 struct completion s_kobj_unregister;
1691 struct kobject s_stat_kobj; /* /sys/fs/f2fs/<devname>/stat */
1692 struct completion s_stat_kobj_unregister;
1694 struct kobject s_feature_list_kobj; /* /sys/fs/f2fs/<devname>/feature_list */
1695 struct completion s_feature_list_kobj_unregister;
1698 struct list_head s_list;
1699 struct mutex umount_mutex;
1700 unsigned int shrinker_run_no;
1703 int s_ndevs; /* number of devices */
1704 struct f2fs_dev_info *devs; /* for device list */
1705 unsigned int dirty_device; /* for checkpoint data flush */
1706 spinlock_t dev_lock; /* protect dirty_device */
1707 bool aligned_blksize; /* all devices has the same logical blksize */
1710 u64 sectors_written_start;
1711 u64 kbytes_written;
1714 struct crypto_shash *s_chksum_driver;
1717 __u32 s_chksum_seed;
1719 struct workqueue_struct *post_read_wq; /* post read workqueue */
1721 unsigned char errors[MAX_F2FS_ERRORS]; /* error flags */
1722 spinlock_t error_lock; /* protect errors array */
1723 bool error_dirty; /* errors of sb is dirty */
1725 struct kmem_cache *inline_xattr_slab; /* inline xattr entry */
1726 unsigned int inline_xattr_slab_size; /* default inline xattr slab size */
1729 unsigned int gc_segment_mode; /* GC state for reclaimed segments */
1730 unsigned int gc_reclaimed_segs[MAX_GC_MODE]; /* Reclaimed segs for each mode */
1732 unsigned long seq_file_ra_mul; /* multiplier for ra_pages of seq. files in fadvise */
1734 int max_fragment_chunk; /* max chunk size for block fragmentation mode */
1735 int max_fragment_hole; /* max hole size for block fragmentation mode */
1738 atomic64_t current_atomic_write;
1739 s64 peak_atomic_write;
1740 u64 committed_atomic_block;
1741 u64 revoked_atomic_block;
1744 struct kmem_cache *page_array_slab; /* page array entry */
1745 unsigned int page_array_slab_size; /* default page array slab size */
1748 u64 compr_written_block;
1749 u64 compr_saved_block;
1750 u32 compr_new_inode;
1753 struct inode *compress_inode; /* cache compressed blocks */
1754 unsigned int compress_percent; /* cache page percentage */
1778 static inline bool __time_to_inject(struct f2fs_sb_info *sbi, int type, in __time_to_inject() argument