search for: do_more

Displaying 4 results from an estimated 4 matches for "do_more".

2006 Apr 02
1
Zeroing freed blocks
...* bh; + + bh = sb_getblk(sb, block); + memset(bh->b_data, 0, bh->b_size); + mark_buffer_dirty(bh); + brelse(bh); +} + /* Free given blocks, update quota and i_blocks field */ void ext2_free_blocks (struct inode * inode, unsigned long block, unsigned long count) @@ -242,6 +252,9 @@ do_more: "bit already cleared for block %lu", block + i); } else { group_freed++; + if ( test_opt(sb, ZEROFREE) ) { + zero_block(sb, block+i); + } } } --- linux-2.6.16/fs/ext2/super.c.zerofree 2006-03-20 05:53:29.000000000 +0000 +++ linux-2.6.16/fs/ext2/super.c 2006-04-0...
2009 Aug 21
9
enable -Werror and all of gcc's warning options
Here is a bunch of small patches to make fish/ build with most warnings enabled: [1/9] edit.c: avoid warning about signed/unsigned comparison [2/9] fish.c: avoid warnings [3/9] tilde.c: avoid a warning [4/9] fish.c: avoid "assignment discards qualifiers..." warning [5/9] fish.c: avoid signed/unsigned-comparison warning [6/9] fish.c: don't perform arithmetic on void*
2009 Nov 09
1
use STREQ(a,b), not strcmp(a,b) == 0
...0) + else if (STRCASEEQ (cmd, "glob")) r = do_glob (cmd, argc, argv); - else if (strcasecmp (cmd, "more") == 0 || - strcasecmp (cmd, "less") == 0) + else if (STRCASEEQ (cmd, "more") || + STRCASEEQ (cmd, "less")) r = do_more (cmd, argc, argv); - else if (strcasecmp (cmd, "reopen") == 0) + else if (STRCASEEQ (cmd, "reopen")) r = do_reopen (cmd, argc, argv); - else if (strcasecmp (cmd, "sparse") == 0) + else if (STRCASEEQ (cmd, "sparse")) r = do_sparse (cmd, argc, arg...
2009 Aug 03
1
[PATCH 1/2] Convert all TABs-as-indentation to spaces.
...quot;) == 0) r = do_lcd (cmd, argc, argv); else if (strcasecmp (cmd, "glob") == 0) r = do_glob (cmd, argc, argv); else if (strcasecmp (cmd, "more") == 0 || - strcasecmp (cmd, "less") == 0) + strcasecmp (cmd, "less") == 0) r = do_more (cmd, argc, argv); else if (strcasecmp (cmd, "reopen") == 0) r = do_reopen (cmd, argc, argv); @@ -835,26 +835,26 @@ list_builtin_commands (void) { /* help and quit should appear at the top */ printf ("%-20s %s\n", - "help", _("display a list of co...