Print this page
11421 smatch noise in dmu.c

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/dmu.c
          +++ new/usr/src/uts/common/fs/zfs/dmu.c
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23   */
  24   24  /*
  25   25   * Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
  26      - * Copyright (c) 2013, Joyent, Inc. All rights reserved.
       26 + * Copyright 2019 Joyent, Inc.
  27   27   * Copyright 2016 Nexenta Systems, Inc. All rights reserved.
  28   28   * Copyright (c) 2011, 2017 by Delphix. All rights reserved.
  29   29   * Copyright (c) 2018 DilOS
  30   30   */
  31   31  
  32   32  #include <sys/dmu.h>
  33   33  #include <sys/dmu_impl.h>
  34   34  #include <sys/dmu_tx.h>
  35   35  #include <sys/dbuf.h>
  36   36  #include <sys/dnode.h>
↓ open down ↓ 315 lines elided ↑ open up ↑
 352  352  int dmu_bonus_hold_by_dnode(dnode_t *dn, void *tag, dmu_buf_t **dbp,
 353  353      uint32_t flags)
 354  354  {
 355  355          dmu_buf_impl_t *db;
 356  356          int error;
 357  357          uint32_t db_flags = DB_RF_MUST_SUCCEED;
 358  358  
 359  359          if (flags & DMU_READ_NO_PREFETCH)
 360  360                  db_flags |= DB_RF_NOPREFETCH;
 361  361          if (flags & DMU_READ_NO_DECRYPT)
 362      -        db_flags |= DB_RF_NO_DECRYPT;
      362 +                db_flags |= DB_RF_NO_DECRYPT;
 363  363  
 364  364          rw_enter(&dn->dn_struct_rwlock, RW_READER);
 365  365          if (dn->dn_bonus == NULL) {
 366  366                  rw_exit(&dn->dn_struct_rwlock);
 367  367                  rw_enter(&dn->dn_struct_rwlock, RW_WRITER);
 368  368                  if (dn->dn_bonus == NULL)
 369  369                          dbuf_create_bonus(dn);
 370  370          }
 371  371          db = dn->dn_bonus;
 372  372  
↓ open down ↓ 2254 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX