freebsd-dev/sys/ufs/ffs
Konstantin Belousov c31480a1f6 UFS snapshots: properly set the vm object size.
Citing Kirk:
The previous code [before 8563de2f27 -- kib] did not call
vnode_pager_setsize() but worked because later in ffs_snapshot() it
does a UFS_WRITE() to output the snaplist. Previously the UFS_WRITE()
allocated the extra block at the end of the file which caused it to do
the needed vnode_pager_setsize(). But the new code had already allocated
the extra block, so UFS_WRITE() did not extend the size and thus did not
do the vnode_pager_setsize().

PR:	253158
Reported by:	Harald Schmalzbauer <bugzilla.freebsd@omnilan.de>
Reviewed by:	mckusick
Tested by:	cy
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2021-02-16 07:11:52 +02:00
..
ffs_alloc.c Convert remaining cap_rights_init users to cap_rights_init_one 2021-01-12 13:16:10 +00:00
ffs_balloc.c ffs: do not read full direct blocks if they are going to be overwritten. 2020-11-30 17:03:26 +00:00
ffs_extern.h ffs softdep: remove will_direnter argument of softdep_prelink() 2021-02-12 03:02:21 +02:00
ffs_inode.c ffs: call ufsdirhash_dirtrunc() right after setting directory size 2021-02-12 03:02:19 +02:00
ffs_rawread.c vmapbuf: don't smuggle address or length in buf 2020-10-21 16:00:15 +00:00
ffs_snapshot.c UFS snapshots: properly set the vm object size. 2021-02-16 07:11:52 +02:00
ffs_softdep.c ffs softdep: Force processing of VI_OWEINACT vnodes when there is inode shortage 2021-02-12 03:02:22 +02:00
ffs_subr.c Various new check-hash checks have been added to the UFS filesystem 2020-10-25 00:43:48 +00:00
ffs_suspend.c Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
ffs_tables.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ffs_vfsops.c Merge ufs_fhtovp() into ffs_inotovp(). 2021-02-12 03:02:20 +02:00
ffs_vnops.c ffs_unlock: assert that IN_ENDOFF is not leaked past locked scope 2021-02-12 03:02:22 +02:00
fs.h Various new check-hash checks have been added to the UFS filesystem 2020-10-25 00:43:48 +00:00
softdep.h ffs softdep: Force processing of VI_OWEINACT vnodes when there is inode shortage 2021-02-12 03:02:22 +02:00