git: e9adbcdf2e80 - main - tmpfs: report minimal hole size

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Wed, 19 Oct 2022 17:24:24 UTC
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=e9adbcdf2e8000efaca404abcc904eec4eb4ae29

commit e9adbcdf2e8000efaca404abcc904eec4eb4ae29
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-10-17 17:46:22 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-10-19 17:24:07 +0000

    tmpfs: report minimal hole size
    
    Reviewed by:    markj
    Tested by:      pho
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D37024
---
 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 aaeaa843eb43..96ceb0ad5198 100644
--- a/sys/fs/tmpfs/tmpfs_vnops.c
+++ b/sys/fs/tmpfs/tmpfs_vnops.c
@@ -1634,6 +1634,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);
 	}