just whitespace
[platform/upstream/busybox.git] / e2fsprogs / ext2fs / alloc.c
index 7385123..d56ef25 100644 (file)
@@ -7,7 +7,7 @@
  * This file may be redistributed under the terms of the GNU Public
  * License.
  * %End-Header%
- * 
+ *
  */
 
 #include <stdio.h>
@@ -32,7 +32,7 @@
  *
  * Should have a special policy for directories.
  */
-errcode_t ext2fs_new_inode(ext2_filsys fs, ext2_ino_t dir, 
+errcode_t ext2fs_new_inode(ext2_filsys fs, ext2_ino_t dir,
                           int mode EXT2FS_ATTR((unused)),
                           ext2fs_inode_bitmap map, ext2_ino_t *ret)
 {
@@ -41,13 +41,13 @@ errcode_t ext2fs_new_inode(ext2_filsys fs, ext2_ino_t dir,
        ext2_ino_t      start_inode;
 
        EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
-       
+
        if (!map)
                map = fs->inode_map;
        if (!map)
                return EXT2_ET_NO_INODE_BITMAP;
-       
-       if (dir > 0) 
+
+       if (dir > 0)
                dir_group = (dir - 1) / EXT2_INODES_PER_GROUP(fs->super);
 
        start_inode = (dir_group * EXT2_INODES_PER_GROUP(fs->super)) + 1;
@@ -62,7 +62,7 @@ errcode_t ext2fs_new_inode(ext2_filsys fs, ext2_ino_t dir,
                if (i > fs->super->s_inodes_count)
                        i = EXT2_FIRST_INODE(fs->super);
        } while (i != start_inode);
-       
+
        if (ext2fs_test_inode_bitmap(map, i))
                return EXT2_ET_INODE_ALLOC_FAIL;
        *ret = i;
@@ -131,7 +131,7 @@ errcode_t ext2fs_alloc_block(ext2_filsys fs, blk_t goal,
        retval = io_channel_write_blk(fs->io, block, 1, block_buf);
        if (retval)
                goto fail;
-       
+
        ext2fs_block_alloc_stats(fs, block, +1);
        *ret = block;
        return 0;