path: root/stand/libsa/ufs.c
diff options
authorKirk McKusick <mckusick@FreeBSD.org>2021-11-15 06:09:06 +0000
committerKirk McKusick <mckusick@FreeBSD.org>2021-11-15 06:10:16 +0000
commitb366ee4868bca2b3ebe4bb29c9590a29b6cecc29 (patch)
tree276ea71a89f2e4a1ce8188740b9db583f3f8a369 /stand/libsa/ufs.c
parentf7523c8a19d008412ccc969b12eeb756613f3678 (diff)
Consolodate four copies of the STDSB define into a single place.
The STDSB macro is passed to the ffs_sbget() routine to fetch a UFS/FFS superblock "from the stadard place". It was identically defined in lib/libufs/libufs.h, stand/libsa/ufs.c, sys/ufs/ffs/ffs_extern.h, and sys/ufs/ffs/ffs_subr.c. Delete it from these four files and define it instead in sys/ufs/ffs/fs.h. All existing uses of this macro already include sys/ufs/ffs/fs.h so no include changes need to be made. No functional change intended. Sponsored by: Netflix
Diffstat (limited to 'stand/libsa/ufs.c')
1 files changed, 0 insertions, 5 deletions
diff --git a/stand/libsa/ufs.c b/stand/libsa/ufs.c
index a4015dea74c2..31212bf3473a 100644
--- a/stand/libsa/ufs.c
+++ b/stand/libsa/ufs.c
@@ -154,11 +154,6 @@ static int ufs_use_sa_read(void *, off_t, void **, int);
/* from ffs_subr.c */
int ffs_sbget(void *, struct fs **, off_t, char *,
int (*)(void *, off_t, void **, int));
- * Request standard superblock location in ffs_sbget
- */
-#define STDSB -1 /* Fail if check-hash is bad */
-#define STDSB_NOHASHFAIL -2 /* Ignore check-hash failure */
* Read a new inode into a file structure.