X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Freiserfs%2Fsuper.c;h=71eaa0651e91542610e7a9a7329a54a2df1da9ad;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=50e5aaf05371bb2b5f302bf8c26a0998f5738474;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c index 50e5aaf05..71eaa0651 100644 --- a/fs/reiserfs/super.c +++ b/fs/reiserfs/super.c @@ -492,7 +492,6 @@ static void reiserfs_clear_inode (struct inode *inode) REISERFS_I(inode)->i_acl_default = NULL; } - struct super_operations reiserfs_sops = { .alloc_inode = reiserfs_alloc_inode, @@ -651,7 +650,7 @@ static int reiserfs_getopt ( struct super_block * s, char ** cur, opt_desc_t * o reiserfs_warning (s, "head of option \"%s\" is only correct", opt->option_name); return -1; } - + /* move to the argument, or to next option if argument is not required */ p ++; @@ -696,29 +695,30 @@ static int reiserfs_parse_options (struct super_block * s, char * options, /* st char * arg = NULL; char * pos; opt_desc_t opts[] = { - {"tails", 't', tails, 0, 0}, /* Compatibility stuff, so that -o notail for old setups still work */ - {"notail", 0, 0, 0, (1<= (unsigned int)-1) { @@ -757,7 +757,7 @@ static int reiserfs_parse_options (struct super_block * s, char * options, /* st } if ( c == 'w' ) { - char *p=0; + char *p=NULL; int val = simple_strtoul (arg, &p, 0); if ( *p != '\0') { @@ -1346,15 +1346,17 @@ static int reiserfs_fill_super (struct super_block * s, void * data, int silent) memset (sbi, 0, sizeof (struct reiserfs_sb_info)); /* Set default values for options: non-aggressive tails */ REISERFS_SB(s)->s_mount_opt = ( 1 << REISERFS_SMALLTAIL ); - /* default block allocator option: skip_busy */ - REISERFS_SB(s)->s_alloc_options.bits = ( 1 << 5); - /* If file grew past 4 blocks, start preallocation blocks for it. */ - REISERFS_SB(s)->s_alloc_options.preallocmin = 4; + /* no preallocation minimum, be smart in + reiserfs_file_write instead */ + REISERFS_SB(s)->s_alloc_options.preallocmin = 0; /* Preallocate by 16 blocks (17-1) at once */ REISERFS_SB(s)->s_alloc_options.preallocsize = 17; /* Initialize the rwsem for xattr dir */ init_rwsem(&REISERFS_SB(s)->xattr_dir_sem); + /* setup default block allocator options */ + reiserfs_init_alloc_options(s); + jdev_name = NULL; if (reiserfs_parse_options (s, (char *) data, &(sbi->s_mount_opt), &blocks, &jdev_name, &commit_max_age) == 0) { goto error;