/fs/ocfs2/cluster/ |
D | tcp.c | 77 #define SC_NODEF_ARGS(sc) sc->sc_node->nd_name, sc->sc_node->nd_num, \ argument 78 &sc->sc_node->nd_ipv4_address, \ 79 ntohs(sc->sc_node->nd_ipv4_port) 96 #define sclog(sc, fmt, args...) do { \ argument 97 typeof(sc) __sc = (sc); \ 143 static void o2net_sc_postpone_idle(struct o2net_sock_container *sc); 144 static void o2net_sc_reset_idle_timer(struct o2net_sock_container *sc); 173 struct o2net_sock_container *sc) in o2net_set_nst_sock_container() argument 175 nst->st_sc = sc; in o2net_set_nst_sock_container() 184 static inline void o2net_set_sock_timer(struct o2net_sock_container *sc) in o2net_set_sock_timer() argument [all …]
|
D | netdebug.c | 213 void o2net_debug_add_sc(struct o2net_sock_container *sc) in o2net_debug_add_sc() argument 216 list_add(&sc->sc_net_debug_item, &sock_containers); in o2net_debug_add_sc() 220 void o2net_debug_del_sc(struct o2net_sock_container *sc) in o2net_debug_del_sc() argument 223 list_del_init(&sc->sc_net_debug_item); in o2net_debug_del_sc() 235 struct o2net_sock_container *sc, *ret = NULL; in next_sc() local 239 list_for_each_entry(sc, &sc_start->sc_net_debug_item, in next_sc() 242 if (&sc->sc_net_debug_item == &sock_containers) in next_sc() 246 if (sc->sc_page != NULL) { in next_sc() 247 ret = sc; in next_sc() 258 struct o2net_sock_container *sc, *dummy_sc = sd->dbg_sock; in sc_seq_start() local [all …]
|
D | tcp.h | 131 void o2net_debug_add_sc(struct o2net_sock_container *sc); 132 void o2net_debug_del_sc(struct o2net_sock_container *sc); 147 static inline void o2net_debug_add_sc(struct o2net_sock_container *sc) in o2net_debug_add_sc() argument 150 static inline void o2net_debug_del_sc(struct o2net_sock_container *sc) in o2net_debug_del_sc() argument
|
/fs/gfs2/ |
D | super.c | 461 void gfs2_statfs_change_in(struct gfs2_statfs_change_host *sc, const void *buf) in gfs2_statfs_change_in() argument 465 sc->sc_total = be64_to_cpu(str->sc_total); in gfs2_statfs_change_in() 466 sc->sc_free = be64_to_cpu(str->sc_free); in gfs2_statfs_change_in() 467 sc->sc_dinodes = be64_to_cpu(str->sc_dinodes); in gfs2_statfs_change_in() 470 static void gfs2_statfs_change_out(const struct gfs2_statfs_change_host *sc, void *buf) in gfs2_statfs_change_out() argument 474 str->sc_total = cpu_to_be64(sc->sc_total); in gfs2_statfs_change_out() 475 str->sc_free = cpu_to_be64(sc->sc_free); in gfs2_statfs_change_out() 476 str->sc_dinodes = cpu_to_be64(sc->sc_dinodes); in gfs2_statfs_change_out() 1055 struct gfs2_statfs_change_host *sc) in statfs_slow_fill() argument 1058 sc->sc_total += rgd->rd_data; in statfs_slow_fill() [all …]
|
D | super.h | 43 extern void gfs2_statfs_change_in(struct gfs2_statfs_change_host *sc,
|
D | quota.c | 167 struct shrink_control *sc) in gfs2_qd_shrink_scan() argument 172 if (!(sc->gfp_mask & __GFP_FS)) in gfs2_qd_shrink_scan() 175 freed = list_lru_shrink_walk(&gfs2_qd_lru, sc, in gfs2_qd_shrink_scan() 184 struct shrink_control *sc) in gfs2_qd_shrink_count() argument 186 return vfs_pressure_ratio(list_lru_shrink_count(&gfs2_qd_lru, sc)); in gfs2_qd_shrink_count()
|
D | glock.c | 1410 struct shrink_control *sc) in gfs2_glock_shrink_scan() argument 1412 if (!(sc->gfp_mask & __GFP_FS)) in gfs2_glock_shrink_scan() 1414 return gfs2_scan_glock_lru(sc->nr_to_scan); in gfs2_glock_shrink_scan() 1418 struct shrink_control *sc) in gfs2_glock_shrink_count() argument
|
/fs/ |
D | super.c | 57 struct shrink_control *sc) in super_cache_scan() argument 72 if (!(sc->gfp_mask & __GFP_FS)) in super_cache_scan() 79 fs_objects = sb->s_op->nr_cached_objects(sb, sc); in super_cache_scan() 81 inodes = list_lru_shrink_count(&sb->s_inode_lru, sc); in super_cache_scan() 82 dentries = list_lru_shrink_count(&sb->s_dentry_lru, sc); in super_cache_scan() 88 dentries = mult_frac(sc->nr_to_scan, dentries, total_objects); in super_cache_scan() 89 inodes = mult_frac(sc->nr_to_scan, inodes, total_objects); in super_cache_scan() 90 fs_objects = mult_frac(sc->nr_to_scan, fs_objects, total_objects); in super_cache_scan() 99 sc->nr_to_scan = dentries + 1; in super_cache_scan() 100 freed = prune_dcache_sb(sb, sc); in super_cache_scan() [all …]
|
D | internal.h | 122 extern long prune_icache_sb(struct super_block *sb, struct shrink_control *sc); 148 extern long prune_dcache_sb(struct super_block *sb, struct shrink_control *sc);
|
D | mbcache.c | 268 struct shrink_control *sc) in mb_cache_count() argument 318 struct shrink_control *sc) in mb_cache_scan() argument 320 int nr_to_scan = sc->nr_to_scan; in mb_cache_scan()
|
D | inode.c | 769 long prune_icache_sb(struct super_block *sb, struct shrink_control *sc) in prune_icache_sb() argument 774 freed = list_lru_shrink_walk(&sb->s_inode_lru, sc, in prune_icache_sb()
|
/fs/f2fs/ |
D | shrinker.c | 43 struct shrink_control *sc) in f2fs_shrink_count() argument 79 struct shrink_control *sc) in f2fs_shrink_scan() argument 81 unsigned long nr = sc->nr_to_scan; in f2fs_shrink_scan()
|
/fs/ubifs/ |
D | shrinker.c | 280 struct shrink_control *sc) in ubifs_shrink_count() argument 292 struct shrink_control *sc) in ubifs_shrink_scan() argument 294 unsigned long nr = sc->nr_to_scan; in ubifs_shrink_scan()
|
D | ubifs.h | 1623 struct shrink_control *sc); 1625 struct shrink_control *sc);
|
/fs/nfsd/ |
D | nfscache.c | 67 struct shrink_control *sc); 69 struct shrink_control *sc); 271 nfsd_reply_cache_count(struct shrinker *shrink, struct shrink_control *sc) in nfsd_reply_cache_count() argument 277 nfsd_reply_cache_scan(struct shrinker *shrink, struct shrink_control *sc) in nfsd_reply_cache_scan() argument
|
/fs/nfs/ |
D | nfs4state.c | 453 nfs4_init_seqid_counter(struct nfs_seqid_counter *sc) in nfs4_init_seqid_counter() argument 455 sc->create_time = ktime_get(); in nfs4_init_seqid_counter() 456 sc->flags = 0; in nfs4_init_seqid_counter() 457 sc->counter = 0; in nfs4_init_seqid_counter() 458 spin_lock_init(&sc->lock); in nfs4_init_seqid_counter() 459 INIT_LIST_HEAD(&sc->list); in nfs4_init_seqid_counter() 460 rpc_init_wait_queue(&sc->wait, "Seqid_waitqueue"); in nfs4_init_seqid_counter() 464 nfs4_destroy_seqid_counter(struct nfs_seqid_counter *sc) in nfs4_destroy_seqid_counter() argument 466 rpc_destroy_wait_queue(&sc->wait); in nfs4_destroy_seqid_counter()
|
D | internal.h | 350 struct shrink_control *sc); 352 struct shrink_control *sc);
|
D | dir.c | 2182 nfs_access_cache_scan(struct shrinker *shrink, struct shrink_control *sc) in nfs_access_cache_scan() argument 2184 int nr_to_scan = sc->nr_to_scan; in nfs_access_cache_scan() 2185 gfp_t gfp_mask = sc->gfp_mask; in nfs_access_cache_scan() 2194 nfs_access_cache_count(struct shrinker *shrink, struct shrink_control *sc) in nfs_access_cache_count() argument
|
/fs/ext4/ |
D | extents_status.c | 1061 struct shrink_control *sc) in ext4_es_count() argument 1068 trace_ext4_es_shrink_count(sbi->s_sb, sc->nr_to_scan, nr); in ext4_es_count() 1073 struct shrink_control *sc) in ext4_es_scan() argument 1077 int nr_to_scan = sc->nr_to_scan; in ext4_es_scan()
|
/fs/xfs/ |
D | xfs_qm.c | 523 struct shrink_control *sc) in xfs_qm_shrink_scan() argument 531 if ((sc->gfp_mask & (__GFP_FS|__GFP_DIRECT_RECLAIM)) != (__GFP_FS|__GFP_DIRECT_RECLAIM)) in xfs_qm_shrink_scan() 537 freed = list_lru_shrink_walk(&qi->qi_lru, sc, in xfs_qm_shrink_scan() 558 struct shrink_control *sc) in xfs_qm_shrink_count() argument 563 return list_lru_shrink_count(&qi->qi_lru, sc); in xfs_qm_shrink_count()
|
D | xfs_buf.c | 1691 struct shrink_control *sc) in xfs_buftarg_shrink_scan() argument 1698 freed = list_lru_shrink_walk(&btp->bt_lru, sc, in xfs_buftarg_shrink_scan() 1714 struct shrink_control *sc) in xfs_buftarg_shrink_count() argument 1718 return list_lru_shrink_count(&btp->bt_lru, sc); in xfs_buftarg_shrink_count()
|
D | xfs_super.c | 1720 struct shrink_control *sc) in xfs_fs_nr_cached_objects() argument 1728 struct shrink_control *sc) in xfs_fs_free_cached_objects() argument 1730 return xfs_reclaim_inodes_nr(XFS_M(sb), sc->nr_to_scan); in xfs_fs_free_cached_objects()
|
/fs/ntfs/ |
D | file.c | 1899 size_t sc; in ntfs_perform_write() local 1909 sc = iov_iter_single_seg_count(i); in ntfs_perform_write() 1910 if (bytes > sc) in ntfs_perform_write() 1911 bytes = sc; in ntfs_perform_write()
|
/fs/quota/ |
D | dquot.c | 703 dqcache_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in dqcache_shrink_scan() argument 711 while (head != &free_dquots && sc->nr_to_scan) { in dqcache_shrink_scan() 717 sc->nr_to_scan--; in dqcache_shrink_scan() 726 dqcache_shrink_count(struct shrinker *shrink, struct shrink_control *sc) in dqcache_shrink_count() argument
|
/fs/ocfs2/dlm/ |
D | dlmmaster.c | 1241 enum dlm_node_state_change sc; in dlm_restart_lock_mastery() local 1251 node = dlm_bitmap_diff_iter_next(&bdi, &sc); in dlm_restart_lock_mastery() 1253 if (sc == NODE_UP) { in dlm_restart_lock_mastery() 1319 node = dlm_bitmap_diff_iter_next(&bdi, &sc); in dlm_restart_lock_mastery()
|