Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ffs reduce diff vs 1.117, no functional change



details:   https://anonhg.NetBSD.org/src/rev/74038dde5a98
branches:  trunk
changeset: 348788:74038dde5a98
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Mon Nov 07 21:05:38 2016 +0000

description:
reduce diff vs 1.117, no functional change

diffstat:

 sys/ufs/ffs/ffs_inode.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r a0ac608bb6bc -r 74038dde5a98 sys/ufs/ffs/ffs_inode.c
--- a/sys/ufs/ffs/ffs_inode.c   Mon Nov 07 18:16:07 2016 +0000
+++ b/sys/ufs/ffs/ffs_inode.c   Mon Nov 07 21:05:38 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_inode.c,v 1.118 2016/10/28 20:38:12 jdolecek Exp $ */
+/*     $NetBSD: ffs_inode.c,v 1.119 2016/11/07 21:05:38 jdolecek Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_inode.c,v 1.118 2016/10/28 20:38:12 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_inode.c,v 1.119 2016/11/07 21:05:38 jdolecek Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -675,11 +675,11 @@
         * Recursively free blocks on the now last partial indirect block.
         */
        if (level > SINGLE && lastbn >= 0) {
-               nb = RBAP(ip, last);
+               last = lastbn % factor;
+               nb = RBAP(ip, i);
                if (nb != 0) {
                        error = ffs_indirtrunc(ip, nlbn, FFS_FSBTODB(fs, nb),
-                                              lastbn % factor, level - 1,
-                                              countp);
+                                              last, level - 1, countp);
                        if (error)
                                goto out;
                }



Home | Main Index | Thread Index | Old Index