summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2012-09-11 04:54:44 +0000
committerae <ae@FreeBSD.org>2012-09-11 04:54:44 +0000
commit3e78c7c3828fe3a47a5a4aa4c123244820b107fc (patch)
tree00e5c6bce03330d89ddbd4783bcf2576245e3b7d /sys/boot/i386
parent5690c36115ccc8ce8dd2aea09c9c7dcadf2a5b93 (diff)
downloadFreeBSD-src-3e78c7c3828fe3a47a5a4aa4c123244820b107fc.zip
FreeBSD-src-3e78c7c3828fe3a47a5a4aa4c123244820b107fc.tar.gz
Slightly reduce an overhead for the open() call in the zfsloader.
libstand(3) tries to detect file system in the predefined order, but zfsloader usually is used for the booting from ZFS, and there is no need to try detect several file system types for each open() call.
Diffstat (limited to 'sys/boot/i386')
-rw-r--r--sys/boot/i386/loader/conf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/boot/i386/loader/conf.c b/sys/boot/i386/loader/conf.c
index dda2eac..d925a35 100644
--- a/sys/boot/i386/loader/conf.c
+++ b/sys/boot/i386/loader/conf.c
@@ -70,6 +70,9 @@ struct devsw *devsw[] = {
};
struct fs_ops *file_system[] = {
+#if defined(LOADER_ZFS_SUPPORT)
+ &zfs_fsops,
+#endif
&ufs_fsops,
&ext2fs_fsops,
&dosfs_fsops,
@@ -78,9 +81,6 @@ struct fs_ops *file_system[] = {
&nandfs_fsops,
#endif
&splitfs_fsops,
-#if defined(LOADER_ZFS_SUPPORT)
- &zfs_fsops,
-#endif
#ifdef LOADER_GZIP_SUPPORT
&gzipfs_fsops,
#endif
OpenPOWER on IntegriCloud