Deleted Added
full compact
ffs_vfsops.c (121847) ffs_vfsops.c (121874)
1/*
2 * Copyright (c) 1989, 1991, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 20 unchanged lines hidden (view full) ---

29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)ffs_vfsops.c 8.31 (Berkeley) 5/20/95
34 */
35
36#include <sys/cdefs.h>
1/*
2 * Copyright (c) 1989, 1991, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 20 unchanged lines hidden (view full) ---

29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)ffs_vfsops.c 8.31 (Berkeley) 5/20/95
34 */
35
36#include <sys/cdefs.h>
37__FBSDID("$FreeBSD: head/sys/ufs/ffs/ffs_vfsops.c 121847 2003-11-01 05:51:54Z kan $");
37__FBSDID("$FreeBSD: head/sys/ufs/ffs/ffs_vfsops.c 121874 2003-11-02 04:52:53Z kan $");
38
39#include "opt_mac.h"
40#include "opt_quota.h"
41#include "opt_ufs.h"
42
43#include <sys/param.h>
44#include <sys/systm.h>
45#include <sys/namei.h>

--- 486 unchanged lines hidden (view full) ---

532 (int)fs->fs_bsize, NOCRED, &bp);
533 if (error) {
534 vput(vp);
535 return (error);
536 }
537 ffs_load_inode(bp, ip, fs, ip->i_number);
538 ip->i_effnlink = ip->i_nlink;
539 brelse(bp);
38
39#include "opt_mac.h"
40#include "opt_quota.h"
41#include "opt_ufs.h"
42
43#include <sys/param.h>
44#include <sys/systm.h>
45#include <sys/namei.h>

--- 486 unchanged lines hidden (view full) ---

532 (int)fs->fs_bsize, NOCRED, &bp);
533 if (error) {
534 vput(vp);
535 return (error);
536 }
537 ffs_load_inode(bp, ip, fs, ip->i_number);
538 ip->i_effnlink = ip->i_nlink;
539 brelse(bp);
540 vput(vp);
540 VOP_UNLOCK(vp, 0, td);
541 vrele(vp);
541 mtx_lock(&mntvnode_mtx);
542 }
543 mtx_unlock(&mntvnode_mtx);
544 return (0);
545}
546
547/*
548 * Possible superblock locations ordered from most to least likely.

--- 612 unchanged lines hidden (view full) ---

1161 if ((error = vget(vp, lockreq, td)) != 0) {
1162 mtx_lock(&mntvnode_mtx);
1163 if (error == ENOENT)
1164 goto loop;
1165 continue;
1166 }
1167 if ((error = VOP_FSYNC(vp, cred, waitfor, td)) != 0)
1168 allerror = error;
542 mtx_lock(&mntvnode_mtx);
543 }
544 mtx_unlock(&mntvnode_mtx);
545 return (0);
546}
547
548/*
549 * Possible superblock locations ordered from most to least likely.

--- 612 unchanged lines hidden (view full) ---

1162 if ((error = vget(vp, lockreq, td)) != 0) {
1163 mtx_lock(&mntvnode_mtx);
1164 if (error == ENOENT)
1165 goto loop;
1166 continue;
1167 }
1168 if ((error = VOP_FSYNC(vp, cred, waitfor, td)) != 0)
1169 allerror = error;
1169 vput(vp);
1170 VOP_UNLOCK(vp, 0, td);
1171 vrele(vp);
1170 mtx_lock(&mntvnode_mtx);
1171 if (TAILQ_NEXT(vp, v_nmntvnodes) != nvp)
1172 goto loop;
1173 }
1174 mtx_unlock(&mntvnode_mtx);
1175 /*
1176 * Force stale filesystem control information to be flushed.
1177 */

--- 369 unchanged lines hidden ---
1172 mtx_lock(&mntvnode_mtx);
1173 if (TAILQ_NEXT(vp, v_nmntvnodes) != nvp)
1174 goto loop;
1175 }
1176 mtx_unlock(&mntvnode_mtx);
1177 /*
1178 * Force stale filesystem control information to be flushed.
1179 */

--- 369 unchanged lines hidden ---