summaryrefslogtreecommitdiffstats
path: root/sys/fs/tmpfs/tmpfs_vfsops.c
diff options
context:
space:
mode:
authormjg <mjg@FreeBSD.org>2014-10-20 18:00:50 +0000
committermjg <mjg@FreeBSD.org>2014-10-20 18:00:50 +0000
commit12e0034dd069b0f2d2b0cf11d216afbe99094438 (patch)
treee51e6a7989eefd8dc56ac47c5d0db6b3380c4a81 /sys/fs/tmpfs/tmpfs_vfsops.c
parentd6c735be7798e52e8a242ae20504aa525caf1b00 (diff)
downloadFreeBSD-src-12e0034dd069b0f2d2b0cf11d216afbe99094438.zip
FreeBSD-src-12e0034dd069b0f2d2b0cf11d216afbe99094438.tar.gz
Provide vfs suspension support only for filesystems which need it, take
two. nullfs and unionfs need to request suspension if underlying filesystem(s) use it. Utilize mnt_kern_flag for this purpose. This is a fixup for 273271. No strong objections from: kib Pointy hat to: mjg MFC after: 2 weeks
Diffstat (limited to 'sys/fs/tmpfs/tmpfs_vfsops.c')
-rw-r--r--sys/fs/tmpfs/tmpfs_vfsops.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vfsops.c b/sys/fs/tmpfs/tmpfs_vfsops.c
index f0bb96b..4777234 100644
--- a/sys/fs/tmpfs/tmpfs_vfsops.c
+++ b/sys/fs/tmpfs/tmpfs_vfsops.c
@@ -255,6 +255,7 @@ tmpfs_mount(struct mount *mp)
MNT_ILOCK(mp);
mp->mnt_flag |= MNT_LOCAL;
+ mp->mnt_kern_flag |= MNTK_SUSPENDABLE;
MNT_IUNLOCK(mp);
mp->mnt_data = tmp;
@@ -427,14 +428,6 @@ 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.
*/
@@ -445,6 +438,5 @@ 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);
OpenPOWER on IntegriCloud