Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/uts/common/fs/zfs Skip atime update...
details: https://anonhg.NetBSD.org/src/rev/c88bb8530c9d
branches: trunk
changeset: 457227:c88bb8530c9d
user: hannken <hannken%NetBSD.org@localhost>
date: Mon Jun 17 08:07:56 2019 +0000
description:
Skip atime update on dead "z_sa_hdl == NULL" znodes.
diffstat:
external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 14e8287e5009 -r c88bb8530c9d external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c Mon Jun 17 08:07:27 2019 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c Mon Jun 17 08:07:56 2019 +0000
@@ -5759,7 +5759,7 @@
/*
* Process a deferred atime update.
*/
- if (zp->z_atime_dirty && zp->z_unlinked == 0) {
+ if (zp->z_atime_dirty && zp->z_unlinked == 0 && zp->z_sa_hdl != NULL) {
dmu_tx_t *tx = dmu_tx_create(zfsvfs->z_os);
dmu_tx_hold_sa(tx, zp->z_sa_hdl, B_FALSE);
Home |
Main Index |
Thread Index |
Old Index