git: 0d2dfc6fed03 - main - pagertab: use designated initializers
Konstantin Belousov
kib at FreeBSD.org
Fri May 7 14:08:27 UTC 2021
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=0d2dfc6fed03c36f7c4a9bb2a4223028f3b4431b
commit 0d2dfc6fed03c36f7c4a9bb2a4223028f3b4431b
Author: Konstantin Belousov <kib at FreeBSD.org>
AuthorDate: 2021-05-01 17:20:36 +0000
Commit: Konstantin Belousov <kib at FreeBSD.org>
CommitDate: 2021-05-07 14:08:03 +0000
pagertab: use designated initializers
Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D30070
---
sys/vm/vm_pager.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/sys/vm/vm_pager.c b/sys/vm/vm_pager.c
index 587407a06291..8be344b7665b 100644
--- a/sys/vm/vm_pager.c
+++ b/sys/vm/vm_pager.c
@@ -164,14 +164,14 @@ static struct pagerops deadpagerops = {
};
struct pagerops *pagertab[] = {
- &defaultpagerops, /* OBJT_DEFAULT */
- &swappagerops, /* OBJT_SWAP */
- &vnodepagerops, /* OBJT_VNODE */
- &devicepagerops, /* OBJT_DEVICE */
- &physpagerops, /* OBJT_PHYS */
- &deadpagerops, /* OBJT_DEAD */
- &sgpagerops, /* OBJT_SG */
- &mgtdevicepagerops, /* OBJT_MGTDEVICE */
+ [OBJT_DEFAULT] = &defaultpagerops,
+ [OBJT_SWAP] = &swappagerops,
+ [OBJT_VNODE] = &vnodepagerops,
+ [OBJT_DEVICE] = &devicepagerops,
+ [OBJT_PHYS] = &physpagerops,
+ [OBJT_DEAD] = &deadpagerops,
+ [OBJT_SG] = &sgpagerops,
+ [OBJT_MGTDEVICE] = &mgtdevicepagerops,
};
void
More information about the dev-commits-src-main
mailing list