]> git.proxmox.com Git - mirror_zfs.git/commit
Fix dirty check in dmu_offset_next()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 15 Nov 2017 18:19:32 +0000 (10:19 -0800)
committerGitHub <noreply@github.com>
Wed, 15 Nov 2017 18:19:32 +0000 (10:19 -0800)
commit454365bbaacc153f98d2a3adaf33b13a6183d45d
treee8fcacf20a9a146d37c093496348fa1852ec1180
parent13589da974e4e808b16d7dd280744277bb8d079b
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