Date: Thu, 24 Mar 2022 10:20:56 GMT From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 2587b74c6187 - main - vfs: retire the NDF_ONLY_PNBUF flag Message-ID: <202203241020.22OAKuF0098864@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=2587b74c6187af043259ae9360a1ea9708d02d8e commit 2587b74c6187af043259ae9360a1ea9708d02d8e Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2022-03-24 10:15:54 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2022-03-24 10:20:51 +0000 vfs: retire the NDF_ONLY_PNBUF flag Consumers should use NDFREE_PNBUF instead. --- sys/sys/namei.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sys/sys/namei.h b/sys/sys/namei.h index 98cbc2ca6ed9..cc93bf7a5ca2 100644 --- a/sys/sys/namei.h +++ b/sys/sys/namei.h @@ -287,17 +287,9 @@ do { \ #define NDF_NO_VP_PUT 0x0000000c #define NDF_NO_STARTDIR_RELE 0x00000010 #define NDF_NO_FREE_PNBUF 0x00000020 -#define NDF_ONLY_PNBUF (~NDF_NO_FREE_PNBUF) void NDFREE_PNBUF(struct nameidata *); void NDFREE(struct nameidata *, const u_int); -#define NDFREE(ndp, flags) do { \ - struct nameidata *_ndp = (ndp); \ - if (__builtin_constant_p(flags) && flags == NDF_ONLY_PNBUF) \ - NDFREE_PNBUF(_ndp); \ - else \ - NDFREE(_ndp, flags); \ -} while (0) #ifdef INVARIANTS void NDFREE_NOTHING(struct nameidata *);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203241020.22OAKuF0098864>