Searched refs:i_size (Results 1 – 3 of 3) sorted by relevance
333 loff_t i_size, offset; in ima_calc_file_hash_atfm() local356 i_size = i_size_read(file_inode(file)); in ima_calc_file_hash_atfm()358 if (i_size == 0) in ima_calc_file_hash_atfm()365 rbuf[0] = ima_alloc_pages(i_size, &rbuf_size[0], 1); in ima_calc_file_hash_atfm()372 if (i_size > rbuf_size[0]) { in ima_calc_file_hash_atfm()378 rbuf[1] = ima_alloc_pages(i_size - rbuf_size[0], in ima_calc_file_hash_atfm()382 for (offset = 0; offset < i_size; offset += rbuf_len) { in ima_calc_file_hash_atfm()393 rbuf_len = min_t(loff_t, i_size - offset, rbuf_size[active]); in ima_calc_file_hash_atfm()460 loff_t i_size, offset = 0; in ima_calc_file_hash_tfm() local473 i_size = i_size_read(file_inode(file)); in ima_calc_file_hash_tfm()[all …]
406 (inode->i_size == 0))) in ima_appraise_measurement()477 if (inode->i_size == 0 && iint->flags & IMA_NEW_FILE && in ima_appraise_measurement()
1485 d_inode(dent)->i_size = rawdata->size; in __aa_fs_create_rawdata()