ext2_vfsops.c (246564) | ext2_vfsops.c (251612) |
---|---|
1/*- 2 * modified for EXT2FS support in Lites 1.1 3 * 4 * Aug 1995, Godmar Back (gback@cs.utah.edu) 5 * University of Utah, Department of Computer Science 6 */ 7/*- 8 * Copyright (c) 1989, 1991, 1993, 1994 --- 19 unchanged lines hidden (view full) --- 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * 35 * @(#)ffs_vfsops.c 8.8 (Berkeley) 4/18/94 | 1/*- 2 * modified for EXT2FS support in Lites 1.1 3 * 4 * Aug 1995, Godmar Back (gback@cs.utah.edu) 5 * University of Utah, Department of Computer Science 6 */ 7/*- 8 * Copyright (c) 1989, 1991, 1993, 1994 --- 19 unchanged lines hidden (view full) --- 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * 35 * @(#)ffs_vfsops.c 8.8 (Berkeley) 4/18/94 |
36 * $FreeBSD: head/sys/fs/ext2fs/ext2_vfsops.c 246564 2013-02-08 21:09:44Z pfg $ | 36 * $FreeBSD: head/sys/fs/ext2fs/ext2_vfsops.c 251612 2013-06-11 02:47:07Z pfg $ |
37 */ 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/namei.h> 42#include <sys/priv.h> 43#include <sys/proc.h> 44#include <sys/kernel.h> --- 697 unchanged lines hidden (view full) --- 742ext2_flushfiles(struct mount *mp, int flags, struct thread *td) 743{ 744 int error; 745 746 error = vflush(mp, 0, flags, td); 747 return (error); 748} 749/* | 37 */ 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/namei.h> 42#include <sys/priv.h> 43#include <sys/proc.h> 44#include <sys/kernel.h> --- 697 unchanged lines hidden (view full) --- 742ext2_flushfiles(struct mount *mp, int flags, struct thread *td) 743{ 744 int error; 745 746 error = vflush(mp, 0, flags, td); 747 return (error); 748} 749/* |
750 * Get file system statistics. | 750 * Get filesystem statistics. |
751 */ 752int 753ext2_statfs(struct mount *mp, struct statfs *sbp) 754{ 755 struct ext2mount *ump; 756 struct m_ext2fs *fs; 757 uint32_t overhead, overhead_per_group, ngdb; 758 int i, ngroups; --- 88 unchanged lines hidden (view full) --- 847 } 848 if ((error = VOP_FSYNC(vp, waitfor, td)) != 0) 849 allerror = error; 850 VOP_UNLOCK(vp, 0); 851 vrele(vp); 852 } 853 854 /* | 751 */ 752int 753ext2_statfs(struct mount *mp, struct statfs *sbp) 754{ 755 struct ext2mount *ump; 756 struct m_ext2fs *fs; 757 uint32_t overhead, overhead_per_group, ngdb; 758 int i, ngroups; --- 88 unchanged lines hidden (view full) --- 847 } 848 if ((error = VOP_FSYNC(vp, waitfor, td)) != 0) 849 allerror = error; 850 VOP_UNLOCK(vp, 0); 851 vrele(vp); 852 } 853 854 /* |
855 * Force stale file system control information to be flushed. | 855 * Force stale filesystem control information to be flushed. |
856 */ 857 if (waitfor != MNT_LAZY) { 858 vn_lock(ump->um_devvp, LK_EXCLUSIVE | LK_RETRY); 859 if ((error = VOP_FSYNC(ump->um_devvp, waitfor, td)) != 0) 860 allerror = error; 861 VOP_UNLOCK(ump->um_devvp, 0); 862 } 863 --- 233 unchanged lines hidden --- | 856 */ 857 if (waitfor != MNT_LAZY) { 858 vn_lock(ump->um_devvp, LK_EXCLUSIVE | LK_RETRY); 859 if ((error = VOP_FSYNC(ump->um_devvp, waitfor, td)) != 0) 860 allerror = error; 861 VOP_UNLOCK(ump->um_devvp, 0); 862 } 863 --- 233 unchanged lines hidden --- |