Lines Matching defs:primary

67 	 * If we are not using the primary superblock/GDT copy don't resize,
777 * Check that all of the backup GDT blocks are held in the primary GDT block.
783 struct buffer_head *primary)
785 const ext4_fsblk_t blk = primary->b_blocknr;
790 __le32 *p = (__le32 *)primary->b_data;
813 * use from the resize inode. The primary copy of the new GDT block currently
909 * reserved inode, and will become GDT blocks (primary and backup).
1011 * The indirect blocks are actually the primary reserved GDT blocks,
1013 * double-indirect block to verify it is pointing to the primary reserved
1015 * backup GDT blocks are stored in their reserved primary GDT block.
1023 struct buffer_head **primary;
1032 primary = kmalloc_array(reserved_gdb, sizeof(*primary), GFP_NOFS);
1033 if (!primary)
1049 /* Get each reserved primary GDT block and verify it holds backups */
1059 primary[res] = ext4_sb_bread(sb, blk, 0);
1060 if (IS_ERR(primary[res])) {
1061 err = PTR_ERR(primary[res]);
1062 primary[res] = NULL;
1065 gdbackups = verify_reserved_gdb(sb, group, primary[res]);
1067 brelse(primary[res]);
1076 BUFFER_TRACE(primary[i], "get_write_access");
1077 if ((err = ext4_journal_get_write_access(handle, sb, primary[i],
1087 * the new group to its reserved primary GDT block.
1092 data = (__le32 *)primary[i]->b_data;
1094 primary[i]->b_blocknr, gdbackups,
1095 blk + primary[i]->b_blocknr); */
1096 data[gdbackups] = cpu_to_le32(blk + primary[i]->b_blocknr);
1097 err2 = ext4_handle_dirty_metadata(handle, NULL, primary[i]);
1107 brelse(primary[res]);
1111 kfree(primary);
1130 * _should_ update the backups if possible, in case the primary gets trashed