]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r361313:
authorRyan Moeller <freqlabs@FreeBSD.org>
Thu, 28 May 2020 17:08:39 +0000 (17:08 +0000)
committerRyan Moeller <freqlabs@FreeBSD.org>
Thu, 28 May 2020 17:08:39 +0000 (17:08 +0000)
commit90117b016d8de520fb6cd7494a1bcc499abd9ccb
tree2a12d2a18e8bcd09a060ad238249156f560f5a63
parent5f15e830abbafff6c1b8a9a55243d54e19e5ea8e
MFC r361313:

Deduplicate fsid comparisons

Comparing fsid_t objects requires internal knowledge of the fsid structure
and yet this is duplicated across a number of places in the code.

Simplify by creating a fsidcmp function (macro).

Reviewed by:    mjg, rmacklem
Approved by:    mav (mentor)
Sponsored by:   iXsystems, Inc.
Differential Revision:  https://reviews.freebsd.org/D24749
13 files changed:
lib/libugidfw/ugidfw.c
sbin/mksnap_ffs/mksnap_ffs.c
sbin/umount/umount.c
sys/fs/nfs/nfsdport.h
sys/fs/nfsserver/nfs_nfsdport.c
sys/fs/nfsserver/nfs_nfsdsocket.c
sys/fs/nfsserver/nfs_nfsdstate.c
sys/kern/vfs_subr.c
sys/security/mac_bsdextended/mac_bsdextended.c
sys/security/mac_bsdextended/mac_bsdextended.h
sys/sys/mount.h
usr.sbin/autofs/autounmountd.c
usr.sbin/mountd/mountd.c