git: kernel - Fix a few edge cases in subr_blist.c

看板DFBSD_commit作者時間14年前 (2011/12/28 02:04), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 3cd891f0bef92e5d211330fa006be8d9319c4dd0 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Tue Nov 29 20:41:20 2011 -0800 kernel - Fix a few edge cases in subr_blist.c * In the all-allocated special case set bm_bighint to 0 instead of to count. This fixes an edge case where failed allocations wind up traversing too much of the radix tree. * In the all-free special case be sure to set bm_bighint to the radix, higher layers check bm_bighint when recursing. (This bug could not occur unless you had 4 swap devices configured). * Improve code documentation and minor cleanups. Summary of changes: sys/kern/subr_blist.c | 66 +++++++++++++++++++++++++++++-------------------- 1 files changed, 39 insertions(+), 27 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3cd891f0bef92e5d211330fa006be8d9319c4dd0 -- DragonFly BSD source repository
文章代碼(AID): #1E-WYnDa (DFBSD_commit)