freebsd-dev/sys
Konstantin Belousov 5e198e7646 ffs_close_ea: do not relock vnode under lock_ea
ffs_lock_ea is after the vnode lock, so vnode must not be relocked under
lock_ea. Move ffs_truncate() call in ffs_close_ea() after the lock_ea is
dropped, and only truncate to length zero, since this is the only mode
supported by ffs_truncate() for EAs. Previously code did truncation and
then write.

Zero the part of the ext area that is unused, if truncation is due but not
done because ea area is not zero-length.

Reviewed by:	mckusick
Tested by:	pho
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
2021-02-24 09:55:04 +02:00
..
amd64 smbios: Move smbios driver out from x86 machdep code 2021-02-23 21:17:09 +00:00
arm Remove __XSCALE__ checks from the arm code 2021-02-19 15:31:26 +00:00
arm64 arm64: Include NUMA locality info in the CPU topology 2021-02-18 10:51:38 -05:00
bsm Add aio_writev and aio_readv 2021-01-02 19:57:58 -07:00
cam Bump CTL block backend threads from 14 to 32 per LUN. 2021-02-23 11:03:32 -05:00
cddl Reimplement the arm64 dtrace_gethrtime(), which provides the 2021-02-19 09:00:39 +00:00
compat Use atomic loads/stores when updating td->td_state 2021-02-18 14:02:48 +00:00
conf smbios: Move smbios driver out from x86 machdep code 2021-02-23 21:17:09 +00:00
contrib ice_ddp: Update package file to 1.3.19.0 2021-02-22 18:02:19 -08:00
crypto OpenSSL: Regen assembly files for OpenSSL 1.1.1j 2021-02-17 00:35:11 -05:00
ddb Use atomic loads/stores when updating td->td_state 2021-02-18 14:02:48 +00:00
dev Revert "ipmi_smbios: Deduplicate smbios entry point discovery logic" 2021-02-23 22:49:13 +00:00
dts Remove DTS files for arm boards we don't support 2021-01-27 10:02:01 +00:00
fs Fix makefs bootstrap after d485c77f20 2021-02-22 17:55:45 +00:00
gdb Use atomic loads/stores when updating td->td_state 2021-02-18 14:02:48 +00:00
geom opencrypto: Introduce crypto_dispatch_async() 2021-02-08 09:19:19 -05:00
gnu Remove the old dts imported tree. 2021-01-15 20:09:55 +01:00
i386 smbios: Move smbios driver out from x86 machdep code 2021-02-23 21:17:09 +00:00
isa
kern rmlock: Add a required compiler membar to the rlock slow path 2021-02-23 21:17:12 -05:00
kgssapi opencrypto: Introduce crypto_dispatch_async() 2021-02-08 09:19:19 -05:00
libkern Restore the augmented strlen commentary 2021-02-08 19:15:21 +00:00
mips Add a VA_IS_CLEANMAP() macro. 2021-02-17 16:32:11 -08:00
modules smbios: Move smbios driver out from x86 machdep code 2021-02-23 21:17:09 +00:00
net bridge: Remove members when assigned to a new vnet 2021-02-23 13:54:07 +01:00
net80211
netgraph netgraph/ng_bridge: Add counters for the first link, too 2021-02-10 19:05:37 +01:00
netinet arp/nd: Cope with late calls to iflladdr_event 2021-02-23 13:54:07 +01:00
netinet6 Fix nd6 rib_action() handling. 2021-02-23 22:40:01 +00:00
netipsec Revert "SO_RERROR indicates that receive buffer overflows should be handled as errors." 2021-02-08 22:32:32 +00:00
netpfil pf: Fix osfp configuration 2021-02-18 08:38:28 +01:00
netsmb
nfs
nfsclient
nfsserver nfs: Mark unused statistics variable as reserved 2020-11-18 04:35:49 +00:00
nlm
ofed kern: net: remove TCP_LINGERTIME 2021-02-18 22:36:01 -06:00
opencrypto cryptosoft: Support per-op keys for AES-GCM and AES-CCM. 2021-02-18 09:53:25 -08:00
powerpc Add a VA_IS_CLEANMAP() macro. 2021-02-17 16:32:11 -08:00
riscv Add a VA_IS_CLEANMAP() macro. 2021-02-17 16:32:11 -08:00
rpc nfs-over-tls: handle res.gid.gid_val correctly for memory allocation 2021-01-12 13:59:52 -08:00
security close_range: add audit support 2021-02-23 17:47:07 +00:00
sys Remove __NO_TLS. 2021-02-23 20:08:10 +02:00
teken loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
tests Enable running fib tests inside vnet jail. 2021-01-17 20:32:26 +00:00
tools syscalls.master: Add a new syscall type: RESERVED 2021-01-26 18:27:44 +00:00
ufs ffs_close_ea: do not relock vnode under lock_ea 2021-02-24 09:55:04 +02:00
vm uma: Update the comment above startup_alloc() to reflect reality 2021-02-22 18:22:51 -05:00
x86 smbios: Move smbios driver out from x86 machdep code 2021-02-23 21:17:09 +00:00
xdr
xen xen: remove .swp file from public headers 2021-01-11 18:14:11 +01:00
Makefile