svn commit: r220047 - in stable/8/sys: conf modules/ufs ufs/ffs
ufs/ufs
Konstantin Belousov
kib at FreeBSD.org
Sun Mar 27 00:42:28 UTC 2011
Author: kib
Date: Sun Mar 27 00:42:28 2011
New Revision: 220047
URL: http://svn.freebsd.org/changeset/base/220047
Log:
MFC r219804:
Retire opt_ffs_broken_fixme.h.
Modified:
stable/8/sys/conf/options
stable/8/sys/modules/ufs/Makefile
stable/8/sys/ufs/ffs/ffs_vfsops.c
stable/8/sys/ufs/ufs/ufs_lookup.c
stable/8/sys/ufs/ufs/ufsmount.h
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
Modified: stable/8/sys/conf/options
==============================================================================
--- stable/8/sys/conf/options Sat Mar 26 22:39:23 2011 (r220046)
+++ stable/8/sys/conf/options Sun Mar 27 00:42:28 2011 (r220047)
@@ -198,6 +198,7 @@ CD9660 opt_dontuse.h
CODA opt_dontuse.h
EXT2FS opt_dontuse.h
FDESCFS opt_dontuse.h
+FFS opt_dontuse.h
HPFS opt_dontuse.h
MSDOSFS opt_dontuse.h
NTFS opt_dontuse.h
@@ -215,9 +216,6 @@ UNIONFS opt_dontuse.h
# Pseudofs debugging
PSEUDOFS_TRACE opt_pseudofs.h
-# Broken - ffs_snapshot() dependency from ufs_lookup() :-(
-FFS opt_ffs_broken_fixme.h
-
# In-kernel GSS-API
KGSSAPI opt_kgssapi.h
KGSSAPI_DEBUG opt_kgssapi.h
Modified: stable/8/sys/modules/ufs/Makefile
==============================================================================
--- stable/8/sys/modules/ufs/Makefile Sat Mar 26 22:39:23 2011 (r220046)
+++ stable/8/sys/modules/ufs/Makefile Sun Mar 27 00:42:28 2011 (r220047)
@@ -3,8 +3,7 @@
.PATH: ${.CURDIR}/../../ufs/ufs ${.CURDIR}/../../ufs/ffs
KMOD= ufs
-SRCS= opt_ddb.h opt_directio.h opt_ffs.h opt_ffs_broken_fixme.h \
- opt_quota.h opt_suiddir.h opt_ufs.h \
+SRCS= opt_ddb.h opt_directio.h opt_ffs.h opt_quota.h opt_suiddir.h opt_ufs.h \
vnode_if.h ufs_acl.c ufs_bmap.c ufs_dirhash.c ufs_extattr.c \
ufs_gjournal.c ufs_inode.c ufs_lookup.c ufs_quota.c ufs_vfsops.c \
ufs_vnops.c ffs_alloc.c ffs_balloc.c ffs_inode.c ffs_snapshot.c \
Modified: stable/8/sys/ufs/ffs/ffs_vfsops.c
==============================================================================
--- stable/8/sys/ufs/ffs/ffs_vfsops.c Sat Mar 26 22:39:23 2011 (r220046)
+++ stable/8/sys/ufs/ffs/ffs_vfsops.c Sun Mar 27 00:42:28 2011 (r220047)
@@ -792,6 +792,7 @@ ffs_mountfs(devvp, mp, td)
ump->um_vfree = ffs_vfree;
ump->um_ifree = ffs_ifree;
ump->um_rdonly = ffs_rdonly;
+ ump->um_snapgone = ffs_snapgone;
mtx_init(UFS_MTX(ump), "FFS", "FFS Lock", MTX_DEF);
bcopy(bp->b_data, ump->um_fs, (u_int)fs->fs_sbsize);
if (fs->fs_sbsize < SBLOCKSIZE)
Modified: stable/8/sys/ufs/ufs/ufs_lookup.c
==============================================================================
--- stable/8/sys/ufs/ufs/ufs_lookup.c Sat Mar 26 22:39:23 2011 (r220046)
+++ stable/8/sys/ufs/ufs/ufs_lookup.c Sun Mar 27 00:42:28 2011 (r220047)
@@ -37,7 +37,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_ffs_broken_fixme.h"
#include "opt_ufs.h"
#include "opt_quota.h"
@@ -1239,7 +1238,7 @@ out:
* when last open reference goes away.
*/
if (ip != 0 && (ip->i_flags & SF_SNAPSHOT) != 0 && ip->i_effnlink == 0)
- ffs_snapgone(ip);
+ UFS_SNAPGONE(ip);
return (error);
}
@@ -1289,7 +1288,7 @@ ufs_dirrewrite(dp, oip, newinum, newtype
* when last open reference goes away.
*/
if ((oip->i_flags & SF_SNAPSHOT) != 0 && oip->i_effnlink == 0)
- ffs_snapgone(oip);
+ UFS_SNAPGONE(oip);
return (error);
}
Modified: stable/8/sys/ufs/ufs/ufsmount.h
==============================================================================
--- stable/8/sys/ufs/ufs/ufsmount.h Sat Mar 26 22:39:23 2011 (r220046)
+++ stable/8/sys/ufs/ufs/ufsmount.h Sun Mar 27 00:42:28 2011 (r220047)
@@ -95,6 +95,7 @@ struct ufsmount {
int (*um_vfree)(struct vnode *, ino_t, int);
void (*um_ifree)(struct ufsmount *, struct inode *);
int (*um_rdonly)(struct inode *);
+ void (*um_snapgone)(struct inode *);
};
#define UFS_BALLOC(aa, bb, cc, dd, ee, ff) VFSTOUFS((aa)->v_mount)->um_balloc(aa, bb, cc, dd, ee, ff)
@@ -105,6 +106,7 @@ struct ufsmount {
#define UFS_VFREE(aa, bb, cc) VFSTOUFS((aa)->v_mount)->um_vfree(aa, bb, cc)
#define UFS_IFREE(aa, bb) ((aa)->um_ifree(aa, bb))
#define UFS_RDONLY(aa) ((aa)->i_ump->um_rdonly(aa))
+#define UFS_SNAPGONE(aa) ((aa)->i_ump->um_snapgone(aa))
#define UFS_LOCK(aa) mtx_lock(&(aa)->um_lock)
#define UFS_UNLOCK(aa) mtx_unlock(&(aa)->um_lock)
More information about the svn-src-stable-8
mailing list