X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/91447636331957f3d9b5ca5b508f07c526b0074d..3a60a9f5b85abb8c2cf24e1926c5c7b3f608a5e2:/bsd/nfs/nfs_vnops.c diff --git a/bsd/nfs/nfs_vnops.c b/bsd/nfs/nfs_vnops.c index c858df061..b5d0b9c6f 100644 --- a/bsd/nfs/nfs_vnops.c +++ b/bsd/nfs/nfs_vnops.c @@ -4148,6 +4148,9 @@ again: if ((waitfor == MNT_WAIT) && !LIST_EMPTY(&np->n_dirtyblkhd)) { goto again; } + /* if we have no dirty blocks, we can clear the modified flag */ + if (LIST_EMPTY(&np->n_dirtyblkhd)) + np->n_flag &= ~NMODIFIED; FSDBG(526, np->n_flag, np->n_error, 0, 0); if (!ignore_writeerr && (np->n_flag & NWRITEERR)) {