Commit 0e962e7
btrfs: urgent periodic reclaim pass
Periodic reclaim attempts to avoid block_groups seeing active use with a
sweep mark that gets cleared on allocation and set on a sweep. In urgent
conditions where we have very little unallocated space (less than one
chunk used by the threshold calculation for the unallocated target), we
want to be able to override this mechanism.
Introduce a second pass that only happens if we fail to find a reclaim
candidate and reclaim is urgent. In that case, do a second pass where
all block groups are eligible.
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Boris Burkov <boris@bur.io>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent 813d4c6 commit 0e962e7
1 file changed
Lines changed: 34 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1972 | 1972 | | |
1973 | 1973 | | |
1974 | 1974 | | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
1975 | 1989 | | |
1976 | 1990 | | |
1977 | 1991 | | |
1978 | 1992 | | |
1979 | 1993 | | |
| 1994 | + | |
| 1995 | + | |
1980 | 1996 | | |
1981 | 1997 | | |
| 1998 | + | |
1982 | 1999 | | |
1983 | 2000 | | |
1984 | 2001 | | |
1985 | 2002 | | |
| 2003 | + | |
1986 | 2004 | | |
1987 | 2005 | | |
1988 | 2006 | | |
1989 | 2007 | | |
1990 | 2008 | | |
1991 | 2009 | | |
1992 | 2010 | | |
1993 | | - | |
| 2011 | + | |
| 2012 | + | |
1994 | 2013 | | |
| 2014 | + | |
1995 | 2015 | | |
1996 | 2016 | | |
1997 | 2017 | | |
1998 | 2018 | | |
1999 | 2019 | | |
2000 | 2020 | | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
2001 | 2034 | | |
2002 | 2035 | | |
2003 | 2036 | | |
| |||
0 commit comments