tag | line | file | source code |
ext_sb | 57 | fs/ext/freelists.c | if (block < sb->u.ext_sb.s_firstdatazone || |
ext_sb | 58 | fs/ext/freelists.c | block >= sb->u.ext_sb.s_nzones) { |
ext_sb | 66 | fs/ext/freelists.c | if (sb->u.ext_sb.s_firstfreeblock) |
ext_sb | 67 | fs/ext/freelists.c | efb = (struct ext_free_block *) sb->u.ext_sb.s_firstfreeblock->b_data; |
ext_sb | 68 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeblock || efb->count == 254) { |
ext_sb | 72 | fs/ext/freelists.c | if (sb->u.ext_sb.s_firstfreeblock) |
ext_sb | 73 | fs/ext/freelists.c | brelse (sb->u.ext_sb.s_firstfreeblock); |
ext_sb | 74 | fs/ext/freelists.c | if (!(sb->u.ext_sb.s_firstfreeblock = bread (sb->s_dev, |
ext_sb | 77 | fs/ext/freelists.c | efb = (struct ext_free_block *) sb->u.ext_sb.s_firstfreeblock->b_data; |
ext_sb | 78 | fs/ext/freelists.c | efb->next = sb->u.ext_sb.s_firstfreeblocknumber; |
ext_sb | 80 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeblocknumber = block; |
ext_sb | 84 | fs/ext/freelists.c | sb->u.ext_sb.s_freeblockscount ++; |
ext_sb | 86 | fs/ext/freelists.c | mark_buffer_dirty(sb->u.ext_sb.s_firstfreeblock, 1); |
ext_sb | 101 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeblock) |
ext_sb | 104 | fs/ext/freelists.c | efb = (struct ext_free_block *) sb->u.ext_sb.s_firstfreeblock->b_data; |
ext_sb | 107 | fs/ext/freelists.c | mark_buffer_dirty(sb->u.ext_sb.s_firstfreeblock, 1); |
ext_sb | 112 | fs/ext/freelists.c | j = sb->u.ext_sb.s_firstfreeblocknumber; |
ext_sb | 113 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeblocknumber = efb->next; |
ext_sb | 114 | fs/ext/freelists.c | brelse (sb->u.ext_sb.s_firstfreeblock); |
ext_sb | 115 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeblocknumber) { |
ext_sb | 116 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeblock = NULL; |
ext_sb | 118 | fs/ext/freelists.c | if (!(sb->u.ext_sb.s_firstfreeblock = bread (sb->s_dev, |
ext_sb | 119 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeblocknumber, |
ext_sb | 124 | fs/ext/freelists.c | if (j < sb->u.ext_sb.s_firstdatazone || j > sb->u.ext_sb.s_nzones) { |
ext_sb | 129 | fs/ext/freelists.c | sb->u.ext_sb.s_freeblockscount --; |
ext_sb | 155 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeblock) |
ext_sb | 158 | fs/ext/freelists.c | efb = (struct ext_free_block *) sb->u.ext_sb.s_firstfreeblock->b_data; |
ext_sb | 174 | fs/ext/freelists.c | sb->u.ext_sb.s_freeblockscount, count); |
ext_sb | 178 | fs/ext/freelists.c | return sb->u.ext_sb.s_freeblockscount; |
ext_sb | 214 | fs/ext/freelists.c | if (ino < 1 || ino > sb->u.ext_sb.s_ninodes) { |
ext_sb | 219 | fs/ext/freelists.c | if (sb->u.ext_sb.s_firstfreeinodeblock) |
ext_sb | 220 | fs/ext/freelists.c | efi = ((struct ext_free_inode *) sb->u.ext_sb.s_firstfreeinodeblock->b_data) + |
ext_sb | 221 | fs/ext/freelists.c | (sb->u.ext_sb.s_firstfreeinodenumber-1)%EXT_INODES_PER_BLOCK; |
ext_sb | 222 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeinodeblock || efi->count == 14) { |
ext_sb | 226 | fs/ext/freelists.c | if (sb->u.ext_sb.s_firstfreeinodeblock) |
ext_sb | 227 | fs/ext/freelists.c | brelse (sb->u.ext_sb.s_firstfreeinodeblock); |
ext_sb | 233 | fs/ext/freelists.c | efi->next = sb->u.ext_sb.s_firstfreeinodenumber; |
ext_sb | 235 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeinodenumber = ino; |
ext_sb | 236 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeinodeblock = bh; |
ext_sb | 240 | fs/ext/freelists.c | sb->u.ext_sb.s_freeinodescount ++; |
ext_sb | 242 | fs/ext/freelists.c | mark_buffer_dirty(sb->u.ext_sb.s_firstfreeinodeblock, 1); |
ext_sb | 259 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeinodeblock) |
ext_sb | 262 | fs/ext/freelists.c | efi = ((struct ext_free_inode *) sb->u.ext_sb.s_firstfreeinodeblock->b_data) + |
ext_sb | 263 | fs/ext/freelists.c | (sb->u.ext_sb.s_firstfreeinodenumber-1)%EXT_INODES_PER_BLOCK; |
ext_sb | 266 | fs/ext/freelists.c | mark_buffer_dirty(sb->u.ext_sb.s_firstfreeinodeblock, 1); |
ext_sb | 271 | fs/ext/freelists.c | j = sb->u.ext_sb.s_firstfreeinodenumber; |
ext_sb | 272 | fs/ext/freelists.c | if (efi->next > sb->u.ext_sb.s_ninodes) { |
ext_sb | 276 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeinodenumber = efi->next; |
ext_sb | 278 | fs/ext/freelists.c | brelse (sb->u.ext_sb.s_firstfreeinodeblock); |
ext_sb | 279 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeinodenumber) { |
ext_sb | 280 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeinodeblock = NULL; |
ext_sb | 282 | fs/ext/freelists.c | if (!(sb->u.ext_sb.s_firstfreeinodeblock = |
ext_sb | 287 | fs/ext/freelists.c | sb->u.ext_sb.s_freeinodescount --; |
ext_sb | 315 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeinodeblock) |
ext_sb | 318 | fs/ext/freelists.c | efi = ((struct ext_free_inode *) sb->u.ext_sb.s_firstfreeinodeblock->b_data) + |
ext_sb | 319 | fs/ext/freelists.c | ((sb->u.ext_sb.s_firstfreeinodenumber-1)%EXT_INODES_PER_BLOCK); |
ext_sb | 323 | fs/ext/freelists.c | if (ino < 1 || ino > sb->u.ext_sb.s_ninodes) { |
ext_sb | 325 | fs/ext/freelists.c | (int) sb->u.ext_sb.s_firstfreeinodenumber,ino); |
ext_sb | 342 | fs/ext/freelists.c | sb->u.ext_sb.s_freeinodescount, count); |
ext_sb | 346 | 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 | 272 | include/linux/fs.h | struct ext_sb_info ext_sb; |