equal
deleted
inserted
replaced
239 * |
239 * |
240 * If we're trying to assess whether it's OK to do a free, |
240 * If we're trying to assess whether it's OK to do a free, |
241 * cut the reservation in half to allow forward progress |
241 * cut the reservation in half to allow forward progress |
242 * (e.g. make it possible to rm(1) files from a full pool). |
242 * (e.g. make it possible to rm(1) files from a full pool). |
243 */ |
243 */ |
244 space = spa_get_space(dp->dp_spa); |
244 space = spa_get_dspace(dp->dp_spa); |
245 resv = MAX(space >> 6, SPA_MINDEVSIZE >> 1); |
245 resv = MAX(space >> 6, SPA_MINDEVSIZE >> 1); |
246 if (netfree) |
246 if (netfree) |
247 resv >>= 1; |
247 resv >>= 1; |
248 |
248 |
249 return (space - resv); |
249 return (space - resv); |