summaryrefslogtreecommitdiffstats
path: root/sys/fs/nandfs
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2014-08-02 05:05:16 +0000
committerimp <imp@FreeBSD.org>2014-08-02 05:05:16 +0000
commitc7ddb2dba01ae0bccf0d0a853d25433960415b6a (patch)
treef0cff2862fdcc96b3431458a1e15977c91bb2a2a /sys/fs/nandfs
parent30d213fa5db75c49893be226abf670356bb04d72 (diff)
downloadFreeBSD-src-c7ddb2dba01ae0bccf0d0a853d25433960415b6a.zip
FreeBSD-src-c7ddb2dba01ae0bccf0d0a853d25433960415b6a.tar.gz
Set the erase block size properly in the case the underlying media
doesn't advertise an erase block size. Submitted by: bjg@ Pointy hat to: imp@
Diffstat (limited to 'sys/fs/nandfs')
-rw-r--r--sys/fs/nandfs/nandfs_vfsops.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/fs/nandfs/nandfs_vfsops.c b/sys/fs/nandfs/nandfs_vfsops.c
index eba4b4c..eb07d4f 100644
--- a/sys/fs/nandfs/nandfs_vfsops.c
+++ b/sys/fs/nandfs/nandfs_vfsops.c
@@ -912,7 +912,7 @@ nandfs_mount_device(struct vnode *devvp, struct mount *mp,
/*
* We conclude that this is not NAND storage
*/
- nandfsdev->nd_erasesize = NANDFS_DEF_ERASESIZE;
+ erasesize = NANDFS_DEF_ERASESIZE;
} else {
DROP_GIANT();
g_topology_lock();
@@ -924,7 +924,6 @@ nandfs_mount_device(struct vnode *devvp, struct mount *mp,
return (error);
}
}
-
nandfsdev->nd_erasesize = erasesize;
DPRINTF(VOLUMES, ("%s: erasesize %x\n", __func__,
OpenPOWER on IntegriCloud