tag | line | file | source code |
ext_sb | 50 | fs/ext/freelists.c | if (block < sb->u.ext_sb.s_firstdatazone || |
ext_sb | 51 | fs/ext/freelists.c | block >= sb->u.ext_sb.s_nzones) { |
ext_sb | 59 | fs/ext/freelists.c | if (sb->u.ext_sb.s_firstfreeblock) |
ext_sb | 60 | fs/ext/freelists.c | efb = (struct ext_free_block *) sb->u.ext_sb.s_firstfreeblock->b_data; |
ext_sb | 61 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeblock || efb->count == 254) { |
ext_sb | 65 | fs/ext/freelists.c | if (sb->u.ext_sb.s_firstfreeblock) |
ext_sb | 66 | fs/ext/freelists.c | brelse (sb->u.ext_sb.s_firstfreeblock); |
ext_sb | 67 | fs/ext/freelists.c | if (!(sb->u.ext_sb.s_firstfreeblock = bread (sb->s_dev, |
ext_sb | 70 | fs/ext/freelists.c | efb = (struct ext_free_block *) sb->u.ext_sb.s_firstfreeblock->b_data; |
ext_sb | 71 | fs/ext/freelists.c | efb->next = sb->u.ext_sb.s_firstfreeblocknumber; |
ext_sb | 73 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeblocknumber = block; |
ext_sb | 77 | fs/ext/freelists.c | sb->u.ext_sb.s_freeblockscount ++; |
ext_sb | 79 | fs/ext/freelists.c | mark_buffer_dirty(sb->u.ext_sb.s_firstfreeblock, 1); |
ext_sb | 94 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeblock) |
ext_sb | 97 | fs/ext/freelists.c | efb = (struct ext_free_block *) sb->u.ext_sb.s_firstfreeblock->b_data; |
ext_sb | 100 | fs/ext/freelists.c | mark_buffer_dirty(sb->u.ext_sb.s_firstfreeblock, 1); |
ext_sb | 105 | fs/ext/freelists.c | j = sb->u.ext_sb.s_firstfreeblocknumber; |
ext_sb | 106 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeblocknumber = efb->next; |
ext_sb | 107 | fs/ext/freelists.c | brelse (sb->u.ext_sb.s_firstfreeblock); |
ext_sb | 108 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeblocknumber) { |
ext_sb | 109 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeblock = NULL; |
ext_sb | 111 | fs/ext/freelists.c | if (!(sb->u.ext_sb.s_firstfreeblock = bread (sb->s_dev, |
ext_sb | 112 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeblocknumber, |
ext_sb | 117 | fs/ext/freelists.c | if (j < sb->u.ext_sb.s_firstdatazone || j > sb->u.ext_sb.s_nzones) { |
ext_sb | 122 | fs/ext/freelists.c | sb->u.ext_sb.s_freeblockscount --; |
ext_sb | 148 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeblock) |
ext_sb | 151 | fs/ext/freelists.c | efb = (struct ext_free_block *) sb->u.ext_sb.s_firstfreeblock->b_data; |
ext_sb | 167 | fs/ext/freelists.c | sb->u.ext_sb.s_freeblockscount, count); |
ext_sb | 171 | fs/ext/freelists.c | return sb->u.ext_sb.s_freeblockscount; |
ext_sb | 207 | fs/ext/freelists.c | if (ino < 1 || ino > sb->u.ext_sb.s_ninodes) { |
ext_sb | 212 | fs/ext/freelists.c | if (sb->u.ext_sb.s_firstfreeinodeblock) |
ext_sb | 213 | fs/ext/freelists.c | efi = ((struct ext_free_inode *) sb->u.ext_sb.s_firstfreeinodeblock->b_data) + |
ext_sb | 214 | fs/ext/freelists.c | (sb->u.ext_sb.s_firstfreeinodenumber-1)%EXT_INODES_PER_BLOCK; |
ext_sb | 215 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeinodeblock || efi->count == 14) { |
ext_sb | 219 | fs/ext/freelists.c | if (sb->u.ext_sb.s_firstfreeinodeblock) |
ext_sb | 220 | fs/ext/freelists.c | brelse (sb->u.ext_sb.s_firstfreeinodeblock); |
ext_sb | 226 | fs/ext/freelists.c | efi->next = sb->u.ext_sb.s_firstfreeinodenumber; |
ext_sb | 228 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeinodenumber = ino; |
ext_sb | 229 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeinodeblock = bh; |
ext_sb | 233 | fs/ext/freelists.c | sb->u.ext_sb.s_freeinodescount ++; |
ext_sb | 235 | fs/ext/freelists.c | mark_buffer_dirty(sb->u.ext_sb.s_firstfreeinodeblock, 1); |
ext_sb | 252 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeinodeblock) |
ext_sb | 255 | fs/ext/freelists.c | efi = ((struct ext_free_inode *) sb->u.ext_sb.s_firstfreeinodeblock->b_data) + |
ext_sb | 256 | fs/ext/freelists.c | (sb->u.ext_sb.s_firstfreeinodenumber-1)%EXT_INODES_PER_BLOCK; |
ext_sb | 259 | fs/ext/freelists.c | mark_buffer_dirty(sb->u.ext_sb.s_firstfreeinodeblock, 1); |
ext_sb | 264 | fs/ext/freelists.c | j = sb->u.ext_sb.s_firstfreeinodenumber; |
ext_sb | 265 | fs/ext/freelists.c | if (efi->next > sb->u.ext_sb.s_ninodes) { |
ext_sb | 269 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeinodenumber = efi->next; |
ext_sb | 271 | fs/ext/freelists.c | brelse (sb->u.ext_sb.s_firstfreeinodeblock); |
ext_sb | 272 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeinodenumber) { |
ext_sb | 273 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeinodeblock = NULL; |
ext_sb | 275 | fs/ext/freelists.c | if (!(sb->u.ext_sb.s_firstfreeinodeblock = |
ext_sb | 280 | fs/ext/freelists.c | sb->u.ext_sb.s_freeinodescount --; |
ext_sb | 308 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeinodeblock) |
ext_sb | 311 | fs/ext/freelists.c | efi = ((struct ext_free_inode *) sb->u.ext_sb.s_firstfreeinodeblock->b_data) + |
ext_sb | 312 | fs/ext/freelists.c | ((sb->u.ext_sb.s_firstfreeinodenumber-1)%EXT_INODES_PER_BLOCK); |
ext_sb | 316 | fs/ext/freelists.c | if (ino < 1 || ino > sb->u.ext_sb.s_ninodes) { |
ext_sb | 318 | fs/ext/freelists.c | (int) sb->u.ext_sb.s_firstfreeinodenumber,ino); |
ext_sb | 335 | fs/ext/freelists.c | sb->u.ext_sb.s_freeinodescount, count); |
ext_sb | 339 | fs/ext/freelists.c | return sb->u.ext_sb.s_freeinodescount; |
ext_sb | 38 | fs/ext/inode.c | if (sb->u.ext_sb.s_firstfreeinodeblock) |
ext_sb | 39 | fs/ext/inode.c | brelse (sb->u.ext_sb.s_firstfreeinodeblock); |
ext_sb | 40 | fs/ext/inode.c | if (sb->u.ext_sb.s_firstfreeblock) |
ext_sb | 41 | fs/ext/inode.c | brelse (sb->u.ext_sb.s_firstfreeblock); |
ext_sb | 75 | fs/ext/inode.c | s->u.ext_sb.s_ninodes = es->s_ninodes; |
ext_sb | 76 | fs/ext/inode.c | s->u.ext_sb.s_nzones = es->s_nzones; |
ext_sb | 77 | fs/ext/inode.c | s->u.ext_sb.s_firstdatazone = es->s_firstdatazone; |
ext_sb | 78 | fs/ext/inode.c | s->u.ext_sb.s_log_zone_size = es->s_log_zone_size; |
ext_sb | 79 | fs/ext/inode.c | s->u.ext_sb.s_max_size = es->s_max_size; |
ext_sb | 81 | fs/ext/inode.c | s->u.ext_sb.s_firstfreeblocknumber = es->s_firstfreeblock; |
ext_sb | 82 | fs/ext/inode.c | s->u.ext_sb.s_freeblockscount = es->s_freeblockscount; |
ext_sb | 83 | fs/ext/inode.c | s->u.ext_sb.s_firstfreeinodenumber = es->s_firstfreeinode; |
ext_sb | 84 | fs/ext/inode.c | s->u.ext_sb.s_freeinodescount = es->s_freeinodescount; |
ext_sb | 94 | fs/ext/inode.c | if (!s->u.ext_sb.s_firstfreeblocknumber) |
ext_sb | 95 | fs/ext/inode.c | s->u.ext_sb.s_firstfreeblock = NULL; |
ext_sb | 97 | fs/ext/inode.c | if (!(s->u.ext_sb.s_firstfreeblock = bread(dev, |
ext_sb | 98 | fs/ext/inode.c | s->u.ext_sb.s_firstfreeblocknumber, BLOCK_SIZE))) { |
ext_sb | 104 | fs/ext/inode.c | if (!s->u.ext_sb.s_firstfreeinodenumber) |
ext_sb | 105 | fs/ext/inode.c | s->u.ext_sb.s_firstfreeinodeblock = NULL; |
ext_sb | 107 | fs/ext/inode.c | block = 2 + (s->u.ext_sb.s_firstfreeinodenumber - 1) / EXT_INODES_PER_BLOCK; |
ext_sb | 108 | fs/ext/inode.c | if (!(s->u.ext_sb.s_firstfreeinodeblock = bread(dev, block, BLOCK_SIZE))) { |
ext_sb | 110 | fs/ext/inode.c | brelse(s->u.ext_sb.s_firstfreeblock); |
ext_sb | 138 | fs/ext/inode.c | es->s_firstfreeblock = sb->u.ext_sb.s_firstfreeblocknumber; |
ext_sb | 139 | fs/ext/inode.c | es->s_freeblockscount = sb->u.ext_sb.s_freeblockscount; |
ext_sb | 140 | fs/ext/inode.c | es->s_firstfreeinode = sb->u.ext_sb.s_firstfreeinodenumber; |
ext_sb | 141 | fs/ext/inode.c | es->s_freeinodescount = sb->u.ext_sb.s_freeinodescount; |
ext_sb | 153 | fs/ext/inode.c | put_fs_long(sb->u.ext_sb.s_nzones << sb->u.ext_sb.s_log_zone_size, |
ext_sb | 158 | fs/ext/inode.c | put_fs_long(sb->u.ext_sb.s_ninodes, &buf->f_files); |
ext_sb | 315 | include/linux/fs.h | struct ext_sb_info ext_sb; |