mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-22 15:16:33 +00:00
scst_mem: Spelling fix (merge r5952 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@6044 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+5
-5
@@ -341,7 +341,7 @@ out_unlock_put:
|
||||
goto out;
|
||||
}
|
||||
|
||||
static unsigned long __sgv_can_be_shrinked(void)
|
||||
static unsigned long __sgv_can_be_shrunk(void)
|
||||
{
|
||||
unsigned long res;
|
||||
struct sgv_pool *pool;
|
||||
@@ -365,10 +365,10 @@ static unsigned long __sgv_can_be_shrinked(void)
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 12, 0)
|
||||
static unsigned long sgv_can_be_shrinked(struct shrinker *shrinker,
|
||||
static unsigned long sgv_can_be_shrunk(struct shrinker *shrinker,
|
||||
struct shrink_control *sc)
|
||||
{
|
||||
return __sgv_can_be_shrinked();
|
||||
return __sgv_can_be_shrunk();
|
||||
}
|
||||
|
||||
static unsigned long sgv_scan_shrink(struct shrinker *shrinker,
|
||||
@@ -404,7 +404,7 @@ static int sgv_shrink(struct shrinker *shrinker, struct shrink_control *sc)
|
||||
nr = __sgv_shrink(nr, SGV_MIN_SHRINK_INTERVAL, &freed);
|
||||
TRACE_MEM("Left %d", nr);
|
||||
} else
|
||||
nr = __sgv_can_be_shrinked();
|
||||
nr = __sgv_can_be_shrunk();
|
||||
|
||||
TRACE_EXIT_RES(nr);
|
||||
return nr;
|
||||
@@ -1790,7 +1790,7 @@ int scst_sgv_pools_init(unsigned long mem_hwmark, unsigned long mem_lwmark)
|
||||
sgv_shrinker = set_shrinker(DEFAULT_SEEKS, sgv_shrink);
|
||||
#else
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 12, 0)
|
||||
sgv_shrinker.count_objects = sgv_can_be_shrinked;
|
||||
sgv_shrinker.count_objects = sgv_can_be_shrunk;
|
||||
sgv_shrinker.scan_objects = sgv_scan_shrink;
|
||||
#else
|
||||
sgv_shrinker.shrink = sgv_shrink;
|
||||
|
||||
Reference in New Issue
Block a user