svn commit: r330266 - stable/10/sys/kern
Kirk McKusick
mckusick at FreeBSD.org
Fri Mar 2 04:43:08 UTC 2018
Author: mckusick
Date: Fri Mar 2 04:43:07 2018
New Revision: 330266
URL: https://svnweb.freebsd.org/changeset/base/330266
Log:
MFC of 329880.
Add error number to "fsync: giving up on dirty" message.
Modified:
stable/10/sys/kern/vfs_default.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/kern/vfs_default.c
==============================================================================
--- stable/10/sys/kern/vfs_default.c Fri Mar 2 04:41:52 2018 (r330265)
+++ stable/10/sys/kern/vfs_default.c Fri Mar 2 04:43:07 2018 (r330266)
@@ -722,12 +722,13 @@ loop2:
if ((mp != NULL && mp->mnt_secondary_writes > 0) ||
(error == 0 && --maxretry >= 0))
goto loop1;
- error = EAGAIN;
+ if (error == 0)
+ error = EAGAIN;
}
}
BO_UNLOCK(bo);
- if (error == EAGAIN)
- vprint("fsync: giving up on dirty", vp);
+ if (error != 0)
+ vn_printf(vp, "fsync: giving up on dirty (error = %d) ", error);
return (error);
}
More information about the svn-src-all
mailing list