Messages in this thread Patch in this message | | | From | Erez Zadok <> | Subject | [PATCH 12/14] Unionfs: do not over-decrement lower superblock refs on remount | Date | Tue, 1 Apr 2008 17:06:54 -0400 |
| |
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/super.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c index e5cb235..4cddc83 100644 --- a/fs/unionfs/super.c +++ b/fs/unionfs/super.c @@ -755,7 +755,7 @@ out_no_change: /* grab new lower super references; release old ones */ for (i = 0; i < new_branches; i++) atomic_inc(&new_data[i].sb->s_active); - for (i = 0; i < new_branches; i++) + for (i = 0; i < sbmax(sb); i++) atomic_dec(&UNIONFS_SB(sb)->data[i].sb->s_active); /* copy new vectors into their correct place */ -- 1.5.2.2
| |