tmp_suning_uos_patched/fs/xfs/quota
Rusty Russell 8e1f936b73 mm: clean up and kernelify shrinker registration
I can never remember what the function to register to receive VM pressure
is called.  I have to trace down from __alloc_pages() to find it.

It's called "set_shrinker()", and it needs Your Help.

1) Don't hide struct shrinker.  It contains no magic.
2) Don't allocate "struct shrinker".  It's not helpful.
3) Call them "register_shrinker" and "unregister_shrinker".
4) Call the function "shrink" not "shrinker".
5) Reduce the 17 lines of waffly comments to 13, but document it properly.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: David Chinner <dgc@sgi.com>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-17 10:23:00 -07:00
..
xfs_dquot_item.c [XFS] Remove unused header files for MAC and CAP checking functionality. 2007-02-10 18:37:28 +11:00
xfs_dquot_item.h [XFS] Update license/copyright notices to match the prefered SGI 2005-11-02 14:59:41 +11:00
xfs_dquot.c [XFS] The last argument "lsn" of xfs_trans_commit() is always called with 2007-05-08 13:48:42 +10:00
xfs_dquot.h [XFS] Kill direct access to ->count in valusema(); all we ever use it for 2006-06-19 08:41:30 +10:00
xfs_qm_bhv.c [XFS] Remove unused header files for MAC and CAP checking functionality. 2007-02-10 18:37:28 +11:00
xfs_qm_stats.c [XFS] Remove unused header files for MAC and CAP checking functionality. 2007-02-10 18:37:28 +11:00
xfs_qm_stats.h [XFS] Update license/copyright notices to match the prefered SGI 2005-11-02 14:59:41 +11:00
xfs_qm_syscalls.c [XFS] Fix uquota and oquota enforcement problems. 2007-05-08 13:49:33 +10:00
xfs_qm.c mm: clean up and kernelify shrinker registration 2007-07-17 10:23:00 -07:00
xfs_qm.h [XFS] Remove several macros that are no longer used anywhere 2006-09-28 11:02:57 +10:00
xfs_quota_priv.h [XFS] Remove several macros that are no longer used anywhere 2006-09-28 11:02:57 +10:00
xfs_trans_dquot.c [XFS] Fix uquota and oquota enforcement problems. 2007-05-08 13:49:33 +10:00