opnsense-src/sys
Konstantin Belousov 64b494a105 softdep_prelink(): only do sync if other thread changed the vnode metadata since previous prelink
We call into softdep_prerename() and softdep_prelink() when there is
low free space in the journal. Functions sync all vnodes participating
in the VOP, in the hope that this would reduce journal utilization. But
if the vnodes are already synced, doing sync would only spend writes,
journal is filled not due to the records from modifications of our
vnodes.

Remember original seqc numbers for vnodes, and only initiate syncs when
seqc changed.

Reviewed by:	mckusick
Discussed with:	markj
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
Differential revision:	https://reviews.freebsd.org/D30041
2021-06-23 23:46:54 +03:00
..
amd64 linux(4): Retire linux_kplatform. 2021-06-22 08:36:21 +03:00
arm newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
arm64 arm64: remove an unneeded test from pmap_clear_modify() 2021-06-23 14:22:46 -05:00
bsm
cam cam: Set the CAM_QOS_VALID when valid 2021-06-20 19:14:13 -06:00
cddl fbt: Remove some handling for multiple CTF containers 2021-04-02 17:49:13 -04:00
compat linux(4): Retire linux_kplatform. 2021-06-22 08:36:21 +03:00
conf linux(4): Get rid of Linuxulator kernel build options. 2021-06-22 08:32:39 +03:00
contrib zfs: merge openzfs/zfs@c4c162c1e (master) into main 2021-06-20 09:18:44 +02:00
crypto ossl: Use crypto_cursor_segment(). 2021-05-25 16:59:19 -07:00
ddb fix style nit: space after if 2021-05-05 15:26:09 -06:00
dev bus_child_pnpinfo: fix two stragglers 2021-06-22 22:10:31 -06:00
dts arm: allwinner: dtb: Add overlays to disable SD/MMC node 2021-06-14 20:47:37 +02:00
fs unionfs: do not use bare struct componentname 2021-06-23 23:46:15 +03:00
gdb gdb: report specific stop reason for watchpoints 2021-03-30 11:36:41 -03:00
geom gconcat: Implement new online append feature 2021-06-14 11:42:03 -06:00
gnu
i386 linux(4): Retire unused declaration. 2021-06-22 08:41:33 +03:00
isa newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
kern namei: add NDPREINIT() macro 2021-06-23 23:46:15 +03:00
kgssapi
libkern Use '.arch_extension crc' in the arm64 crc32 code 2021-05-06 07:42:35 +00:00
mips Move mips and arm to 1000Hz by default. 2021-06-16 20:00:14 -06:00
modules sdhci_fdt: Add gpio_if.h to the source 2021-06-21 21:55:03 +02:00
net net/bpf: Fix writing of buffer bigger than PAGESIZE 2021-06-23 10:39:18 -06:00
net80211 net80211/LinuxKPI: add more radiotap definitions 2021-06-05 16:21:49 +00:00
netgraph Consistently use the SOLISTENING() macro 2021-06-14 17:32:27 -04:00
netinet ip_mroute: initialize vif ifnet properly 2021-06-23 10:13:52 +02:00
netinet6 Enter the net epoch before calling ip6_setpktopts 2021-06-04 13:18:11 -04:00
netipsec Add missing sockaddr length and family validation to various protocols 2021-05-03 13:35:19 -04:00
netpfil ipfw: Update the pfil mbuf pointer in ipfw_check_frame() 2021-06-16 09:46:56 -04:00
netsmb netsmb: Avoid a read-after-free in smb_t2_request_int() 2021-05-26 10:45:40 -04:00
nfs Fix panic when using BOOTP to resolve root path. 2021-03-28 14:02:40 -05:00
nfsclient nfs: Cleanup dead files 2021-03-17 06:16:31 +11:00
nfsserver nfs: Cleanup dead files 2021-03-17 06:16:31 +11:00
nlm
ofed mlx4/OFED: replace the struct net_device with struct ifnet 2021-06-18 21:20:08 +00:00
opencrypto crypto: Remove now-unused crypto_cursor_seg{base,len}. 2021-06-16 15:23:16 -07:00
powerpc bus_child_pnpinfo: fix two stragglers 2021-06-22 22:10:31 -06:00
riscv riscv: Add an hw.ncpu tunable to limit the number of cores 2021-06-15 01:22:13 +01:00
rpc Consistently use the SOLISTENING() macro 2021-06-14 17:32:27 -04:00
security tcp_input/syncache: acquire only read lock on PCB for SYN,!ACK packets 2021-04-12 08:25:31 -07:00
sys softdep_prelink(): only do sync if other thread changed the vnode metadata since previous prelink 2021-06-23 23:46:54 +03:00
teken
tests tests: Revise FIB lookups per second benchmarking routines 2021-06-17 08:49:09 +02:00
tools makesyscalls.lua: improve generated file style(9) compliance 2021-05-13 13:59:25 -04:00
ufs softdep_prelink(): only do sync if other thread changed the vnode metadata since previous prelink 2021-06-23 23:46:54 +03:00
vm Un-staticise vm_page_init_page() 2021-06-17 16:58:44 +03:00
x86 Reduce code duplication in machine/_types.h 2021-06-14 16:30:16 +01:00
xdr
xen x86/xen: remove PVHv1 code 2021-05-17 11:41:21 +02:00
Makefile