usr/src/uts/common/fs/zfs/zap_micro.c
changeset 13509 04570f5cbeca
parent 12450 c77e20e4e046
child 13512 060607df0c9d
equal deleted inserted replaced
13508:bf0e4028ac3a 13509:04570f5cbeca
    18  *
    18  *
    19  * CDDL HEADER END
    19  * CDDL HEADER END
    20  */
    20  */
    21 /*
    21 /*
    22  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
    22  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
       
    23  * Copyright (c) 2011 by Delphix. All rights reserved.
    23  */
    24  */
    24 
    25 
    25 #include <sys/zio.h>
    26 #include <sys/zio.h>
    26 #include <sys/spa.h>
    27 #include <sys/spa.h>
    27 #include <sys/dmu.h>
    28 #include <sys/dmu.h>
  1401 		*towrite += (3 + (add ? 4 : 0)) * SPA_MAXBLOCKSIZE;
  1402 		*towrite += (3 + (add ? 4 : 0)) * SPA_MAXBLOCKSIZE;
  1402 		return (err);
  1403 		return (err);
  1403 	}
  1404 	}
  1404 
  1405 
  1405 	/*
  1406 	/*
  1406 	 * We lock the zap with adding ==  FALSE. Because, if we pass
  1407 	 * We lock the zap with adding == FALSE. Because, if we pass
  1407 	 * the actual value of add, it could trigger a mzap_upgrade().
  1408 	 * the actual value of add, it could trigger a mzap_upgrade().
  1408 	 * At present we are just evaluating the possibility of this operation
  1409 	 * At present we are just evaluating the possibility of this operation
  1409 	 * and hence we donot want to trigger an upgrade.
  1410 	 * and hence we donot want to trigger an upgrade.
  1410 	 */
  1411 	 */
  1411 	err = zap_lockdir(os, zapobj, NULL, RW_READER, TRUE, FALSE, &zap);
  1412 	err = zap_lockdir(os, zapobj, NULL, RW_READER, TRUE, FALSE, &zap);