aboutsummaryrefslogtreecommitdiff
path: root/sys/ufs
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2022-03-24 10:10:03 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2022-03-24 10:20:51 +0000
commitbb92cd7bcd16f3f36cdbda18d8193619892715fb (patch)
tree76d20509830b20fb047be82e35f7b5097138dfcd /sys/ufs
parent9b597132aea7d75810ca90258022f81d07971444 (diff)
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_snapshot.c8
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c2
-rw-r--r--sys/ufs/ufs/ufs_quota.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/ufs/ffs/ffs_snapshot.c b/sys/ufs/ffs/ffs_snapshot.c
index 6cda327c8fcd..2d3e77df4d7c 100644
--- a/sys/ufs/ffs/ffs_snapshot.c
+++ b/sys/ufs/ffs/ffs_snapshot.c
@@ -276,7 +276,7 @@ restart:
if (nd.ni_dvp->v_mount != mp)
error = EXDEV;
if (error) {
- NDFREE(&nd, NDF_ONLY_PNBUF);
+ NDFREE_PNBUF(&nd);
if (nd.ni_dvp == nd.ni_vp)
vrele(nd.ni_dvp);
else
@@ -293,7 +293,7 @@ restart:
panic("ffs_snapshot: mount mismatch");
vfs_rel(wrtmp);
if (vn_start_write(NULL, &wrtmp, V_NOWAIT) != 0) {
- NDFREE(&nd, NDF_ONLY_PNBUF);
+ NDFREE_PNBUF(&nd);
vput(nd.ni_dvp);
if ((error = vn_start_write(NULL, &wrtmp,
V_XSLEEP | PCATCH)) != 0)
@@ -303,7 +303,7 @@ restart:
error = VOP_CREATE(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &vat);
if (error) {
VOP_VPUT_PAIR(nd.ni_dvp, NULL, true);
- NDFREE(&nd, NDF_ONLY_PNBUF);
+ NDFREE_PNBUF(&nd);
vn_finished_write(wrtmp);
if (error == ERELOOKUP)
goto restart;
@@ -866,7 +866,7 @@ done:
free(copy_fs, M_UFSMNT);
copy_fs = NULL;
out:
- NDFREE(&nd, NDF_ONLY_PNBUF);
+ NDFREE_PNBUF(&nd);
if (saved_nice > 0) {
struct proc *p;
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index 455508cf9969..77361731202a 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -440,7 +440,7 @@ ffs_mount(struct mount *mp)
}
if (error != 0)
return (error);
- NDFREE(&ndp, NDF_ONLY_PNBUF);
+ NDFREE_PNBUF(&ndp);
if (!vn_isdisk_error(ndp.ni_vp, &error)) {
vput(ndp.ni_vp);
return (error);
diff --git a/sys/ufs/ufs/ufs_quota.c b/sys/ufs/ufs/ufs_quota.c
index 2456245b6632..2f625051b321 100644
--- a/sys/ufs/ufs/ufs_quota.c
+++ b/sys/ufs/ufs/ufs_quota.c
@@ -523,7 +523,7 @@ quotaon(struct thread *td, struct mount *mp, int type, void *fname,
vfs_rel(mp);
return (error);
}
- NDFREE(&nd, NDF_ONLY_PNBUF);
+ NDFREE_PNBUF(&nd);
vp = nd.ni_vp;
error = vfs_busy(mp, MBF_NOWAIT);
vfs_rel(mp);