reiserfsprogs: convert reiserfs_filsys_t from structure to pointer-to-structure
This makes it more consistent with e2fsprogs. Signed-off-by: Jeff Mahoney <jeffm@suse.com>
This commit is contained in:
1 parent
81aeadf510
commit
97fa944851
37 files changed
+393
-393
No files matched your search
@@ -20,7 +20,7 @@ static reiserfs_bitmap_t *bmp;
|
||||
static struct reiserfs_super_block *ondisk_sb;
|
||||
|
||||
/* abnornal exit from block reallocation process */
|
||||
static void quit_resizer(reiserfs_filsys_t *fs)
|
||||
static void quit_resizer(reiserfs_filsys_t fs)
|
||||
{
|
||||
/* save changes to bitmap blocks */
|
||||
reiserfs_close(fs);
|
||||
@@ -30,7 +30,7 @@ static void quit_resizer(reiserfs_filsys_t *fs)
|
||||
}
|
||||
|
||||
/* block moving */
|
||||
static unsigned long move_generic_block(reiserfs_filsys_t *fs,
|
||||
static unsigned long move_generic_block(reiserfs_filsys_t fs,
|
||||
unsigned long block,
|
||||
unsigned long bnd, int h)
|
||||
{
|
||||
@@ -87,7 +87,7 @@ static unsigned long move_generic_block(reiserfs_filsys_t *fs,
|
||||
return unused_block;
|
||||
}
|
||||
|
||||
static unsigned long move_unformatted_block(reiserfs_filsys_t *fs,
|
||||
static unsigned long move_unformatted_block(reiserfs_filsys_t fs,
|
||||
unsigned long block,
|
||||
unsigned long bnd, int h)
|
||||
{
|
||||
@@ -100,7 +100,7 @@ static unsigned long move_unformatted_block(reiserfs_filsys_t *fs,
|
||||
}
|
||||
|
||||
/* recursive function processing all tree nodes */
|
||||
static unsigned long move_formatted_block(reiserfs_filsys_t *fs,
|
||||
static unsigned long move_formatted_block(reiserfs_filsys_t fs,
|
||||
unsigned long block,
|
||||
unsigned long bnd, int h)
|
||||
{
|
||||
@@ -189,7 +189,7 @@ static unsigned long move_formatted_block(reiserfs_filsys_t *fs,
|
||||
return new_blocknr;
|
||||
}
|
||||
|
||||
int shrink_fs(reiserfs_filsys_t *fs, long long int blocks)
|
||||
int shrink_fs(reiserfs_filsys_t fs, long long int blocks)
|
||||
{
|
||||
unsigned long n_root_block;
|
||||
unsigned int bmap_nr_new;
|
||||
|
||||
@@ -44,4 +44,4 @@ extern int opt_safe;
|
||||
extern int resize_fs_online(char *devname, long long int blocks);
|
||||
|
||||
/* do_shrink.c */
|
||||
extern int shrink_fs(reiserfs_filsys_t *, long long int blocks);
|
||||
extern int shrink_fs(reiserfs_filsys_t , long long int blocks);
|
||||
@@ -88,7 +88,7 @@ static int bwrite_cond(struct buffer_head *bh)
|
||||
}
|
||||
|
||||
/* the first one of the most important functions */
|
||||
static int expand_fs(reiserfs_filsys_t *fs, long long int block_count_new)
|
||||
static int expand_fs(reiserfs_filsys_t fs, long long int block_count_new)
|
||||
{
|
||||
unsigned int bmap_nr_new, bmap_nr_old;
|
||||
struct reiserfs_super_block *sb;
|
||||
@@ -138,7 +138,7 @@ static int expand_fs(reiserfs_filsys_t *fs, long long int block_count_new)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int resizer_check_fs_size(reiserfs_filsys_t *fs, long long int new_size)
|
||||
static int resizer_check_fs_size(reiserfs_filsys_t fs, long long int new_size)
|
||||
{
|
||||
if (new_size < 0) {
|
||||
reiserfs_warning(stderr, "\nresizer_reiserfs: the new size "
|
||||
@@ -187,7 +187,7 @@ int main(int argc, char *argv[])
|
||||
char *bytes_count_str = NULL;
|
||||
char *devname;
|
||||
char *jdevice_name = NULL;
|
||||
reiserfs_filsys_t *fs;
|
||||
reiserfs_filsys_t fs;
|
||||
struct reiserfs_super_block *sb;
|
||||
|
||||
int c;
|
||||
|
||||
Reference in new issue
Block a user