freebsd-skq/sys/fs/tmpfs
will e2c616f11c tmpfs_getattr(): Return more correct allocated byte counts.
For VREG vnodes, return the resident page count (multiplied by PAGE_SIZE)
for the tmpfs node's anonymous VM object that stores actual file contents.

For all other vnodes, return the tmpfs_node's tn_size, which should not
be rounded to a page.

This change allows using stat(2) to identify a sparse file on tmpfs.

Reviewed by:	kib
MFC after:	1 week
2015-04-10 19:04:39 +00:00
..
tmpfs_fifoops.c Remove code separator lines which do not conform to style(9). 2014-07-14 08:17:11 +00:00
tmpfs_fifoops.h Remove code separator lines which do not conform to style(9). 2014-07-14 08:17:11 +00:00
tmpfs_subr.c Remove duplicated assignment. 2015-02-03 12:09:48 +00:00
tmpfs_vfsops.c Update mtime for tmpfs files modified through memory mapping. Similar 2015-01-28 10:37:23 +00:00
tmpfs_vnops.c tmpfs_getattr(): Return more correct allocated byte counts. 2015-04-10 19:04:39 +00:00
tmpfs_vnops.h Remove code separator lines which do not conform to style(9). 2014-07-14 08:17:11 +00:00
tmpfs.h Update mtime for tmpfs files modified through memory mapping. Similar 2015-01-28 10:37:23 +00:00