diff options
author | mjg <mjg@FreeBSD.org> | 2014-10-19 06:59:33 +0000 |
---|---|---|
committer | mjg <mjg@FreeBSD.org> | 2014-10-19 06:59:33 +0000 |
commit | 65ead9d18ac88bfe8360cecee582a9d3676f22ad (patch) | |
tree | 36b9f8d68635bf0aae8d06720114cd76dfd5f5e8 /sys/fs/tmpfs | |
parent | 9343e2e256e94fb2d630483addc13d5162206a2e (diff) | |
download | FreeBSD-src-65ead9d18ac88bfe8360cecee582a9d3676f22ad.zip FreeBSD-src-65ead9d18ac88bfe8360cecee582a9d3676f22ad.tar.gz |
Provide vfs suspension support only for filesystems which need it.
Need is expressed by providing vfs_susp_clean function in vfsops.
Differential Revision: D952
Reviewed by: kib (previous version)
MFC after: 2 weeks
Diffstat (limited to 'sys/fs/tmpfs')
-rw-r--r-- | sys/fs/tmpfs/tmpfs_vfsops.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vfsops.c b/sys/fs/tmpfs/tmpfs_vfsops.c index cb4a32b..f0bb96b 100644 --- a/sys/fs/tmpfs/tmpfs_vfsops.c +++ b/sys/fs/tmpfs/tmpfs_vfsops.c @@ -427,6 +427,14 @@ tmpfs_sync(struct mount *mp, int waitfor) } /* + * A stub created so that vfs does vn_start_write for this filesystem + */ +static void +tmpfs_susp_clean(struct mount *mp) +{ +} + +/* * tmpfs vfs operations. */ @@ -437,5 +445,6 @@ struct vfsops tmpfs_vfsops = { .vfs_statfs = tmpfs_statfs, .vfs_fhtovp = tmpfs_fhtovp, .vfs_sync = tmpfs_sync, + .vfs_susp_clean = tmpfs_susp_clean, }; VFS_SET(tmpfs_vfsops, tmpfs, VFCF_JAIL); |