]> granicus.if.org Git - zfs/commit
Fix dirty check in dmu_offset_next()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 15 Nov 2017 18:19:32 +0000 (10:19 -0800)
committerTony Hutter <hutter2@llnl.gov>
Tue, 21 Nov 2017 19:11:29 +0000 (13:11 -0600)
commit841cb5ee2ae8f1d617cd1f6713c8394e3bb30127
tree733bc3e29d16e0ca735278049d127fc6c766732d
parentd4cf31275bffeb57825b920ef8bb6cf912e5aa2b
Fix dirty check in dmu_offset_next()

The correct way to determine if a dnode is dirty is to check
if any of the dn->dn_dirty_link's are active.  Relying solely
on the dn->dn_dirtyctx can result in the dnode being mistakenly
reported as clean.

Reviewed-by: Chunwei Chen <tuxoko@gmail.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3125
Closes #6867
module/zfs/dmu.c