kernel: Move GPL'd kernel files to sys/gnu to have them all in one place.
[dragonfly.git] / sys / gnu / vfs / ext2fs / ext2_readwrite.c
similarity index 98%
rename from sys/vfs/gnu/ext2fs/ext2_readwrite.c
rename to sys/gnu/vfs/ext2fs/ext2_readwrite.c
index 65468fc..eab450b 100644 (file)
@@ -38,7 +38,6 @@
  *
  *     @(#)ufs_readwrite.c     8.7 (Berkeley) 1/21/94
  * $FreeBSD: src/sys/gnu/ext2fs/ext2_readwrite.c,v 1.18.2.2 2000/12/22 18:44:33 dillon Exp $
- * $DragonFly: src/sys/vfs/gnu/ext2fs/ext2_readwrite.c,v 1.15 2008/06/19 23:27:39 dillon Exp $
  */
 
 #define        BLKSIZE(a, b, c)        blksize(a, b, c)
@@ -107,8 +106,8 @@ ext2_read(struct vop_read_args *ap)
                        error = bread(vp, lblktodoff(fs, lbn), size, &bp);
                } else if ((vp->v_mount->mnt_flag & MNT_NOCLUSTERR) == 0) {
                        error = cluster_read(vp, (off_t)ip->i_size,
-                                            lblktodoff(fs, lbn), size, 
-                                            uio->uio_resid, 
+                                            lblktodoff(fs, lbn), size,
+                                            uio->uio_resid,
                                             (ap->a_ioflag >> 16) * BKVASIZE,
                                             &bp);
                } else if (seqcount > 1) {
@@ -232,7 +231,7 @@ ext2_write(struct vop_write_args *ap)
                if (uio->uio_offset + xfersize > ip->i_size)
                        vnode_pager_setsize(vp, uio->uio_offset + xfersize);
 
-               /*  
+               /*
                 * Avoid a data-consistency race between write() and mmap()
                 * by ensuring that newly allocated blocks are zerod.  The
                 * race can occur even in the case where the write covers