freebsd-dev/sys/fs/msdosfs
Kirk McKusick 4111ab7088 Revert change made in base r171522
(https://svnweb.freebsd.org/base?view=revision&revision=304232)
converting clrbuf() (which clears the entire buffer) to vfs_bio_clrbuf()
(which clears only the new pages that have been added to the buffer).

Failure to properly remove pages from the buffer cache can make
pages that appear not to need clearing to actually have bad random
data in them. See for example base r304232
(https://svnweb.freebsd.org/base?view=revision&revision=304232)
which noted the need to set B_INVAL and B_NOCACHE as well as clear
the B_CACHE flag before calling brelse() to release the buffer.

Rather than trying to find all the incomplete brelse() calls, it
is simpler, though more slightly expensive, to simply clear the
entire buffer when it is newly allocated.

PR: 213507
Submitted by: Damjan Jovanovic
Reviewed by:  kib
2018-05-16 23:30:03 +00:00
..
bootsect.h msdosfs: use C99 types 2017-05-19 18:13:41 +00:00
bpb.h msdosfs: use C99 types 2017-05-19 18:13:41 +00:00
denode.h sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
direntry.h sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
fat.h sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
msdosfs_conv.c msdosfs: long names of files are created incorrectly. 2018-05-04 03:44:12 +00:00
msdosfs_denode.c msdosfs: use vfs_timestamp() to generate timestamps instead of getnanotime(). 2018-05-06 21:29:29 +00:00
msdosfs_fat.c Revert change made in base r171522 2018-05-16 23:30:03 +00:00
msdosfs_iconv.c sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
msdosfs_lookup.c sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
msdosfs_vfsops.c sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
msdosfs_vnops.c msdosfs: use vfs_timestamp() to generate timestamps instead of getnanotime(). 2018-05-06 21:29:29 +00:00
msdosfsmount.h sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00