Home
last modified time | relevance | path

Searched refs:shrink (Results 1 – 23 of 23) sorted by relevance

/fs/nfs/
Dnfs42xattr.c790 static unsigned long nfs4_xattr_cache_count(struct shrinker *shrink,
792 static unsigned long nfs4_xattr_entry_count(struct shrinker *shrink,
794 static unsigned long nfs4_xattr_cache_scan(struct shrinker *shrink,
796 static unsigned long nfs4_xattr_entry_scan(struct shrinker *shrink,
858 nfs4_xattr_cache_scan(struct shrinker *shrink, struct shrink_control *sc) in nfs4_xattr_cache_scan() argument
879 nfs4_xattr_cache_count(struct shrinker *shrink, struct shrink_control *sc) in nfs4_xattr_cache_count() argument
939 nfs4_xattr_entry_scan(struct shrinker *shrink, struct shrink_control *sc) in nfs4_xattr_entry_scan() argument
946 lru = (shrink == &nfs4_xattr_large_entry_shrinker) ? in nfs4_xattr_entry_scan()
969 nfs4_xattr_entry_count(struct shrinker *shrink, struct shrink_control *sc) in nfs4_xattr_entry_count() argument
974 lru = (shrink == &nfs4_xattr_large_entry_shrinker) ? in nfs4_xattr_entry_count()
Dinternal.h385 extern unsigned long nfs_access_cache_count(struct shrinker *shrink,
387 extern unsigned long nfs_access_cache_scan(struct shrinker *shrink,
Ddir.c2854 nfs_access_cache_scan(struct shrinker *shrink, struct shrink_control *sc) in nfs_access_cache_scan() argument
2866 nfs_access_cache_count(struct shrinker *shrink, struct shrink_control *sc) in nfs_access_cache_count() argument
/fs/
Dmbcache.c293 static unsigned long mb_cache_count(struct shrinker *shrink, in mb_cache_count() argument
296 struct mb_cache *cache = container_of(shrink, struct mb_cache, in mb_cache_count()
333 static unsigned long mb_cache_scan(struct shrinker *shrink, in mb_cache_scan() argument
336 struct mb_cache *cache = container_of(shrink, struct mb_cache, in mb_cache_scan()
Dsuper.c185 static unsigned long super_cache_scan(struct shrinker *shrink, in super_cache_scan() argument
195 sb = container_of(shrink, struct super_block, s_shrink); in super_cache_scan()
242 static unsigned long super_cache_count(struct shrinker *shrink, in super_cache_count() argument
248 sb = container_of(shrink, struct super_block, s_shrink); in super_cache_count()
/fs/nfsd/
Dnfscache.c41 static unsigned long nfsd_reply_cache_count(struct shrinker *shrink,
43 static unsigned long nfsd_reply_cache_scan(struct shrinker *shrink,
303 nfsd_reply_cache_count(struct shrinker *shrink, struct shrink_control *sc) in nfsd_reply_cache_count() argument
305 struct nfsd_net *nn = container_of(shrink, in nfsd_reply_cache_count()
323 nfsd_reply_cache_scan(struct shrinker *shrink, struct shrink_control *sc) in nfsd_reply_cache_scan() argument
325 struct nfsd_net *nn = container_of(shrink, in nfsd_reply_cache_scan()
Dnfs4state.c4397 nfsd4_state_shrinker_count(struct shrinker *shrink, struct shrink_control *sc) in nfsd4_state_shrinker_count() argument
4400 struct nfsd_net *nn = container_of(shrink, in nfsd4_state_shrinker_count()
4412 nfsd4_state_shrinker_scan(struct shrinker *shrink, struct shrink_control *sc) in nfsd4_state_shrinker_scan() argument
/fs/xfs/
Dxfs_icache.c2167 struct shrinker *shrink, in xfs_inodegc_shrinker_count() argument
2170 struct xfs_mount *mp = container_of(shrink, struct xfs_mount, in xfs_inodegc_shrinker_count()
2189 struct shrinker *shrink, in xfs_inodegc_shrinker_scan() argument
2192 struct xfs_mount *mp = container_of(shrink, struct xfs_mount, in xfs_inodegc_shrinker_scan()
2229 struct shrinker *shrink = &mp->m_inodegc_shrinker; in xfs_inodegc_register_shrinker() local
2231 shrink->count_objects = xfs_inodegc_shrinker_count; in xfs_inodegc_register_shrinker()
2232 shrink->scan_objects = xfs_inodegc_shrinker_scan; in xfs_inodegc_register_shrinker()
2233 shrink->seeks = 0; in xfs_inodegc_register_shrinker()
2234 shrink->flags = SHRINKER_NONSLAB; in xfs_inodegc_register_shrinker()
2235 shrink->batch = XFS_INODEGC_SHRINKER_BATCH; in xfs_inodegc_register_shrinker()
[all …]
Dxfs_qm.c504 struct shrinker *shrink, in xfs_qm_shrink_scan() argument
507 struct xfs_quotainfo *qi = container_of(shrink, in xfs_qm_shrink_scan()
539 struct shrinker *shrink, in xfs_qm_shrink_count() argument
542 struct xfs_quotainfo *qi = container_of(shrink, in xfs_qm_shrink_count()
Dxfs_buf.c1913 struct shrinker *shrink, in xfs_buftarg_shrink_scan() argument
1916 struct xfs_buftarg *btp = container_of(shrink, in xfs_buftarg_shrink_scan()
1936 struct shrinker *shrink, in xfs_buftarg_shrink_count() argument
1939 struct xfs_buftarg *btp = container_of(shrink, in xfs_buftarg_shrink_count()
/fs/ocfs2/
Dreservations.c657 unsigned int shrink; in ocfs2_cannibalize_resv() local
659 shrink = min_bits; in ocfs2_cannibalize_resv()
661 shrink = lru_resv->r_len / 2; in ocfs2_cannibalize_resv()
663 lru_resv->r_len -= shrink; in ocfs2_cannibalize_resv()
666 resv->r_len = shrink; in ocfs2_cannibalize_resv()
/fs/f2fs/
Dshrinker.c40 unsigned long f2fs_shrink_count(struct shrinker *shrink, in f2fs_shrink_count() argument
79 unsigned long f2fs_shrink_scan(struct shrinker *shrink, in f2fs_shrink_scan() argument
Df2fs.h4191 unsigned long f2fs_shrink_count(struct shrinker *shrink,
4193 unsigned long f2fs_shrink_scan(struct shrinker *shrink,
/fs/ubifs/
Dshrinker.c267 unsigned long ubifs_shrink_count(struct shrinker *shrink, in ubifs_shrink_count() argument
279 unsigned long ubifs_shrink_scan(struct shrinker *shrink, in ubifs_shrink_scan() argument
Dubifs.h1917 unsigned long ubifs_shrink_scan(struct shrinker *shrink,
1919 unsigned long ubifs_shrink_count(struct shrinker *shrink,
/fs/erofs/
Dzutil.c379 static unsigned long erofs_shrink_count(struct shrinker *shrink, in erofs_shrink_count() argument
385 static unsigned long erofs_shrink_scan(struct shrinker *shrink, in erofs_shrink_scan() argument
/fs/ext4/
Dextents_status.c1631 static unsigned long ext4_es_count(struct shrinker *shrink, in ext4_es_count() argument
1637 sbi = container_of(shrink, struct ext4_sb_info, s_es_shrinker); in ext4_es_count()
1643 static unsigned long ext4_es_scan(struct shrinker *shrink, in ext4_es_scan() argument
1646 struct ext4_sb_info *sbi = container_of(shrink, in ext4_es_scan()
Dinode.c5398 int shrink = (attr->ia_size < inode->i_size); in ext4_setattr() local
5414 if (shrink) { in ext4_setattr()
5442 if (ext4_handle_valid(handle) && shrink) { in ext4_setattr()
5450 if (!shrink) in ext4_setattr()
5453 if (shrink) in ext4_setattr()
5485 if (!shrink) { in ext4_setattr()
/fs/jbd2/
Djournal.c1290 static unsigned long jbd2_journal_shrink_scan(struct shrinker *shrink, in jbd2_journal_shrink_scan() argument
1293 journal_t *journal = container_of(shrink, journal_t, j_shrinker); in jbd2_journal_shrink_scan()
1316 static unsigned long jbd2_journal_shrink_count(struct shrinker *shrink, in jbd2_journal_shrink_count() argument
1319 journal_t *journal = container_of(shrink, journal_t, j_shrinker); in jbd2_journal_shrink_count()
/fs/pstore/
DKconfig22 Can be enlarged if needed, not recommended to shrink it.
/fs/gfs2/
Dquota.c176 static unsigned long gfs2_qd_shrink_scan(struct shrinker *shrink, in gfs2_qd_shrink_scan() argument
193 static unsigned long gfs2_qd_shrink_count(struct shrinker *shrink, in gfs2_qd_shrink_count() argument
Dglock.c2066 static unsigned long gfs2_glock_shrink_scan(struct shrinker *shrink, in gfs2_glock_shrink_scan() argument
2074 static unsigned long gfs2_glock_shrink_count(struct shrinker *shrink, in gfs2_glock_shrink_count() argument
/fs/quota/
Ddquot.c782 dqcache_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in dqcache_shrink_scan() argument
802 dqcache_shrink_count(struct shrinker *shrink, struct shrink_control *sc) in dqcache_shrink_count() argument