diff options
author | Tim Riker <tim@rikers.org> | 2006-01-25 00:08:53 +0000 |
---|---|---|
committer | Tim Riker <tim@rikers.org> | 2006-01-25 00:08:53 +0000 |
commit | c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4 (patch) | |
tree | 5f329b7d0c7f20ecced0dc7581a9ba6dc720d965 /e2fsprogs/ext2fs/alloc.c | |
parent | f64ff682a3d58dbb627e760e6fe1ec21d9ccdf61 (diff) | |
download | busybox-w32-c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4.tar.gz busybox-w32-c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4.tar.bz2 busybox-w32-c1ef7bdd8d002ae0889efcf883d0e1b7faa938d4.zip |
just whitespace
Diffstat (limited to 'e2fsprogs/ext2fs/alloc.c')
-rw-r--r-- | e2fsprogs/ext2fs/alloc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/e2fsprogs/ext2fs/alloc.c b/e2fsprogs/ext2fs/alloc.c index 7385123b8..d56ef2566 100644 --- a/e2fsprogs/ext2fs/alloc.c +++ b/e2fsprogs/ext2fs/alloc.c | |||
@@ -7,7 +7,7 @@ | |||
7 | * This file may be redistributed under the terms of the GNU Public | 7 | * This file may be redistributed under the terms of the GNU Public |
8 | * License. | 8 | * License. |
9 | * %End-Header% | 9 | * %End-Header% |
10 | * | 10 | * |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <stdio.h> | 13 | #include <stdio.h> |
@@ -32,7 +32,7 @@ | |||
32 | * | 32 | * |
33 | * Should have a special policy for directories. | 33 | * Should have a special policy for directories. |
34 | */ | 34 | */ |
35 | errcode_t ext2fs_new_inode(ext2_filsys fs, ext2_ino_t dir, | 35 | errcode_t ext2fs_new_inode(ext2_filsys fs, ext2_ino_t dir, |
36 | int mode EXT2FS_ATTR((unused)), | 36 | int mode EXT2FS_ATTR((unused)), |
37 | ext2fs_inode_bitmap map, ext2_ino_t *ret) | 37 | ext2fs_inode_bitmap map, ext2_ino_t *ret) |
38 | { | 38 | { |
@@ -41,13 +41,13 @@ errcode_t ext2fs_new_inode(ext2_filsys fs, ext2_ino_t dir, | |||
41 | ext2_ino_t start_inode; | 41 | ext2_ino_t start_inode; |
42 | 42 | ||
43 | EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS); | 43 | EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS); |
44 | 44 | ||
45 | if (!map) | 45 | if (!map) |
46 | map = fs->inode_map; | 46 | map = fs->inode_map; |
47 | if (!map) | 47 | if (!map) |
48 | return EXT2_ET_NO_INODE_BITMAP; | 48 | return EXT2_ET_NO_INODE_BITMAP; |
49 | 49 | ||
50 | if (dir > 0) | 50 | if (dir > 0) |
51 | dir_group = (dir - 1) / EXT2_INODES_PER_GROUP(fs->super); | 51 | dir_group = (dir - 1) / EXT2_INODES_PER_GROUP(fs->super); |
52 | 52 | ||
53 | start_inode = (dir_group * EXT2_INODES_PER_GROUP(fs->super)) + 1; | 53 | 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, | |||
62 | if (i > fs->super->s_inodes_count) | 62 | if (i > fs->super->s_inodes_count) |
63 | i = EXT2_FIRST_INODE(fs->super); | 63 | i = EXT2_FIRST_INODE(fs->super); |
64 | } while (i != start_inode); | 64 | } while (i != start_inode); |
65 | 65 | ||
66 | if (ext2fs_test_inode_bitmap(map, i)) | 66 | if (ext2fs_test_inode_bitmap(map, i)) |
67 | return EXT2_ET_INODE_ALLOC_FAIL; | 67 | return EXT2_ET_INODE_ALLOC_FAIL; |
68 | *ret = i; | 68 | *ret = i; |
@@ -131,7 +131,7 @@ errcode_t ext2fs_alloc_block(ext2_filsys fs, blk_t goal, | |||
131 | retval = io_channel_write_blk(fs->io, block, 1, block_buf); | 131 | retval = io_channel_write_blk(fs->io, block, 1, block_buf); |
132 | if (retval) | 132 | if (retval) |
133 | goto fail; | 133 | goto fail; |
134 | 134 | ||
135 | ext2fs_block_alloc_stats(fs, block, +1); | 135 | ext2fs_block_alloc_stats(fs, block, +1); |
136 | *ret = block; | 136 | *ret = block; |
137 | return 0; | 137 | return 0; |