shrinker.c (b2aaf8f74cdc84a9182f6cabf198b7763bcb9d40) | shrinker.c (025dfdafe77f20b3890981a394774baab7b9c827) |
---|---|
1/* 2 * This file is part of UBIFS. 3 * 4 * Copyright (C) 2006-2008 Nokia Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License version 2 as published by 8 * the Free Software Foundation. --- 137 unchanged lines hidden (view full) --- 146 147/** 148 * shrink_tnc_trees - shrink UBIFS TNC trees. 149 * @nr: number of znodes to free 150 * @age: the age of znodes to free 151 * @contention: if any contention, this is set to %1 152 * 153 * This function walks the list of mounted UBIFS file-systems and frees clean | 1/* 2 * This file is part of UBIFS. 3 * 4 * Copyright (C) 2006-2008 Nokia Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License version 2 as published by 8 * the Free Software Foundation. --- 137 unchanged lines hidden (view full) --- 146 147/** 148 * shrink_tnc_trees - shrink UBIFS TNC trees. 149 * @nr: number of znodes to free 150 * @age: the age of znodes to free 151 * @contention: if any contention, this is set to %1 152 * 153 * This function walks the list of mounted UBIFS file-systems and frees clean |
154 * znodes which are older then @age, until at least @nr znodes are freed. | 154 * znodes which are older than @age, until at least @nr znodes are freed. |
155 * Returns the number of freed znodes. 156 */ 157static int shrink_tnc_trees(int nr, int age, int *contention) 158{ 159 struct ubifs_info *c; 160 struct list_head *p; 161 unsigned int run_no; 162 int freed = 0; --- 160 unchanged lines hidden --- | 155 * Returns the number of freed znodes. 156 */ 157static int shrink_tnc_trees(int nr, int age, int *contention) 158{ 159 struct ubifs_info *c; 160 struct list_head *p; 161 unsigned int run_no; 162 int freed = 0; --- 160 unchanged lines hidden --- |