Lines Matching refs:primary
783 struct buffer_head *primary) in verify_reserved_gdb() argument
785 const ext4_fsblk_t blk = primary->b_blocknr; in verify_reserved_gdb()
790 __le32 *p = (__le32 *)primary->b_data; in verify_reserved_gdb()
1023 struct buffer_head **primary; in reserve_backup_gdb() local
1032 primary = kmalloc_array(reserved_gdb, sizeof(*primary), GFP_NOFS); in reserve_backup_gdb()
1033 if (!primary) in reserve_backup_gdb()
1059 primary[res] = ext4_sb_bread(sb, blk, 0); in reserve_backup_gdb()
1060 if (IS_ERR(primary[res])) { in reserve_backup_gdb()
1061 err = PTR_ERR(primary[res]); in reserve_backup_gdb()
1062 primary[res] = NULL; in reserve_backup_gdb()
1065 gdbackups = verify_reserved_gdb(sb, group, primary[res]); in reserve_backup_gdb()
1067 brelse(primary[res]); in reserve_backup_gdb()
1076 BUFFER_TRACE(primary[i], "get_write_access"); in reserve_backup_gdb()
1077 if ((err = ext4_journal_get_write_access(handle, sb, primary[i], in reserve_backup_gdb()
1092 data = (__le32 *)primary[i]->b_data; in reserve_backup_gdb()
1096 data[gdbackups] = cpu_to_le32(blk + primary[i]->b_blocknr); in reserve_backup_gdb()
1097 err2 = ext4_handle_dirty_metadata(handle, NULL, primary[i]); in reserve_backup_gdb()
1107 brelse(primary[res]); in reserve_backup_gdb()
1111 kfree(primary); in reserve_backup_gdb()