git: 944ebd1775b2 - stable/13 - tmpfs: report minimal hole size
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 26 Oct 2022 00:44:07 UTC
The branch stable/13 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=944ebd1775b2c411e7297f4b56d42b5a92b4cff5
commit 944ebd1775b2c411e7297f4b56d42b5a92b4cff5
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-10-17 17:46:22 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-10-26 00:43:43 +0000
tmpfs: report minimal hole size
(cherry picked from commit e9adbcdf2e8000efaca404abcc904eec4eb4ae29)
---
sys/fs/tmpfs/tmpfs_vnops.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c
index 825e3571b599..f46c0ef9490f 100644
--- a/sys/fs/tmpfs/tmpfs_vnops.c
+++ b/sys/fs/tmpfs/tmpfs_vnops.c
@@ -1638,6 +1638,10 @@ tmpfs_pathconf(struct vop_pathconf_args *v)
*retval = 64;
break;
+ case _PC_MIN_HOLE_SIZE:
+ *retval = PAGE_SIZE;
+ break;
+
default:
error = vop_stdpathconf(v);
}