Changeset View
Changeset View
Standalone View
Standalone View
sys/ufs/ffs/ffs_vfsops.c
Show First 20 Lines • Show All 341 Lines • ▼ Show 20 Lines | |||||
static int | static int | ||||
ffs_mount(struct mount *mp) | ffs_mount(struct mount *mp) | ||||
{ | { | ||||
struct vnode *devvp, *odevvp; | struct vnode *devvp, *odevvp; | ||||
struct thread *td; | struct thread *td; | ||||
struct ufsmount *ump = NULL; | struct ufsmount *ump = NULL; | ||||
struct fs *fs; | struct fs *fs; | ||||
int error, error1, flags; | int error, flags; | ||||
int error1 __diagused; | |||||
uint64_t mntorflags, saved_mnt_flag; | uint64_t mntorflags, saved_mnt_flag; | ||||
accmode_t accmode; | accmode_t accmode; | ||||
struct nameidata ndp; | struct nameidata ndp; | ||||
char *fspec; | char *fspec; | ||||
bool mounted_softdep; | bool mounted_softdep; | ||||
td = curthread; | td = curthread; | ||||
if (vfs_filteropt(mp->mnt_optnew, ffs_opts)) | if (vfs_filteropt(mp->mnt_optnew, ffs_opts)) | ||||
▲ Show 20 Lines • Show All 1,249 Lines • ▼ Show 20 Lines | |||||
* disk by syncer. | * disk by syncer. | ||||
*/ | */ | ||||
static int | static int | ||||
ffs_sync_lazy(mp) | ffs_sync_lazy(mp) | ||||
struct mount *mp; | struct mount *mp; | ||||
{ | { | ||||
struct vnode *mvp, *vp; | struct vnode *mvp, *vp; | ||||
struct inode *ip; | struct inode *ip; | ||||
struct thread *td; | |||||
int allerror, error; | int allerror, error; | ||||
allerror = 0; | allerror = 0; | ||||
td = curthread; | |||||
if ((mp->mnt_flag & MNT_NOATIME) != 0) { | if ((mp->mnt_flag & MNT_NOATIME) != 0) { | ||||
#ifdef QUOTA | #ifdef QUOTA | ||||
qsync(mp); | qsync(mp); | ||||
#endif | #endif | ||||
goto sbupdate; | goto sbupdate; | ||||
} | } | ||||
MNT_VNODE_FOREACH_LAZY(vp, mp, mvp, ffs_sync_lazy_filter, NULL) { | MNT_VNODE_FOREACH_LAZY(vp, mp, mvp, ffs_sync_lazy_filter, NULL) { | ||||
if (vp->v_type == VNON) { | if (vp->v_type == VNON) { | ||||
▲ Show 20 Lines • Show All 985 Lines • Show Last 20 Lines |