/linux-master/security/integrity/ima/ |
H A D | ima_appraise.c | 514 (inode->i_size == 0))) 585 if (inode->i_size == 0 && iint->flags & IMA_NEW_FILE &&
|
/linux-master/fs/ocfs2/ |
H A D | file.c | 411 * Do this before setting i_size. 425 di->i_size = cpu_to_le64(new_i_size); 451 (unsigned long long)le64_to_cpu(fe->i_size), 454 mlog_bug_on_msg(le64_to_cpu(fe->i_size) != i_size_read(inode), 455 "Inode %llu, inode i_size = %lld != di " 456 "i_size = %llu, i_flags = 0x%x\n", 459 (unsigned long long)le64_to_cpu(fe->i_size), 462 if (new_i_size > le64_to_cpu(fe->i_size)) { 464 (unsigned long long)le64_to_cpu(fe->i_size), 499 * i_size [all...] |
/linux-master/fs/sysfs/ |
H A D | file.c | 82 loff_t size = file_inode(of->file)->i_size; 145 loff_t size = file_inode(of->file)->i_size;
|
/linux-master/fs/hpfs/ |
H A D | dnode.c | 311 i->i_size += 2048; 349 i->i_size += 2048; 471 i->i_size -= 2048; 543 i->i_size -= 2048;
|
/linux-master/include/uapi/linux/ |
H A D | nilfs2_ondisk.h | 39 * @i_size: size in bytes 56 __le64 i_size; member in struct:nilfs_inode
|
/linux-master/fs/fat/ |
H A D | dir.c | 1387 if (dir->i_size & (sbi->cluster_size - 1)) { 1389 dir->i_size = (dir->i_size + sbi->cluster_size - 1) 1392 dir->i_size += nr_cluster << sbi->cluster_bits;
|
/linux-master/fs/ext4/ |
H A D | block_validity.c | 163 num = (inode->i_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits;
|
H A D | readpage.c | 177 idx < DIV_ROUND_UP(inode->i_size, PAGE_SIZE);
|
/linux-master/drivers/gpu/drm/nouveau/ |
H A D | nouveau_debugfs.c | 291 d_inode(dentry)->i_size = drm->vbios.length;
|
/linux-master/fs/afs/ |
H A D | dynroot.c | 80 inode->i_size = 0;
|
/linux-master/fs/ |
H A D | attr.c | 250 if (inode->i_size < offset) {
|
H A D | buffer.c | 317 folio->index < DIV_ROUND_UP(inode->i_size, PAGE_SIZE); 1815 * Buffers outside i_size may be dirtied by block_dirty_folio; 1832 * mapped buffers outside i_size will occur, because 1833 * this folio can be outside i_size when there is a 2052 * with the check in the caller as i_size updates on 2264 loff_t old_size = inode->i_size; 2270 * No need to use i_size_read() here, the i_size cannot change under us 2273 * But it's important to update i_size while still holding page lock: 2274 * page writeout could otherwise come in and zero beyond i_size. 2276 if (pos + copied > inode->i_size) { 2712 loff_t i_size = i_size_read(inode); local [all...] |
/linux-master/fs/vboxsf/ |
H A D | file.c | 341 if (pos > inode->i_size)
|
/linux-master/fs/smb/client/ |
H A D | file.c | 2297 if (*offset > d_inode(dentry)->i_size) { 2683 if (offset > mapping->host->i_size) { 2689 if (mapping->host->i_size - offset < (loff_t)to) 2690 to = (unsigned)(mapping->host->i_size - offset); 2844 unsigned long long i_size = i_size_read(inode), max_len; local 2890 if (start < i_size) { 2896 max_len = min_t(unsigned long long, max_len, i_size - start); 2912 len = min_t(unsigned long long, len, i_size - start); 2921 if (start < i_size) { 3221 if (pos > inode->i_size) { 4907 loff_t i_size; local [all...] |
/linux-master/fs/autofs/ |
H A D | root.c | 596 inode->i_size = size; 633 d_inode(dentry)->i_size = 0; 714 d_inode(dentry)->i_size = 0;
|
/linux-master/fs/jffs2/ |
H A D | dir.c | 335 inode->i_size = targetlen; 336 ri->isize = ri->dsize = ri->csize = cpu_to_je32(inode->i_size); 337 ri->totlen = cpu_to_je32(sizeof(*ri) + inode->i_size);
|
/linux-master/fs/fuse/ |
H A D | file.c | 827 if (attr_ver >= fi->attr_version && size < inode->i_size && 1041 * i_size is up to date). 1123 if (written > 0 && pos > inode->i_size) { 1277 if (inode->i_size < pos + iov_iter_count(ii)) 2456 if (pos > inode->i_size) 2990 loff_t i_size; local 2997 i_size = i_size_read(inode); 2999 if ((iov_iter_rw(iter) == READ) && (offset >= i_size)) 3022 if (io->async && !io->write && offset + count > i_size) { 3023 iov_iter_truncate(iter, fuse_round_up(ff->fm->fc, i_size [all...] |
/linux-master/fs/btrfs/ |
H A D | inode.c | 526 u64 i_size; local 597 * We're an inline extent, so nobody can extend the file past i_size 600 * We must do any i_size and inode updates before we unlock the pages. 603 i_size = i_size_read(&inode->vfs_inode); 604 if (update_i_size && size > i_size) { 606 i_size = size; 608 inode->disk_i_size = i_size; 636 * i_size, is no larger than a sector (decompressed), and the (possibly 849 u64 i_size; local 869 * We need to save i_size befor 9687 u64 i_size; local [all...] |
/linux-master/fs/hugetlbfs/ |
H A D | inode.c | 162 if (vma->vm_flags & VM_WRITE && inode->i_size < len) 635 * During faults, hugetlb_no_page() checks i_size before page allocation, 837 if ((info->seals & F_SEAL_GROW) && offset + len > inode->i_size) { 919 if (!(mode & FALLOC_FL_KEEP_SIZE) && offset + len > inode->i_size) 941 loff_t oldsize = inode->i_size; 1633 inode->i_size = size;
|
/linux-master/fs/nfs/ |
H A D | write.c | 276 loff_t end, i_size; local 280 i_size = i_size_read(inode); 281 end_index = ((i_size - 1) >> folio_shift(folio)) << folio_order(folio); 282 if (i_size > 0 && folio_index(folio) < end_index) 285 if (i_size >= end)
|
/linux-master/fs/smb/server/ |
H A D | vfs.c | 832 if (size < inode->i_size) { 834 inode->i_size - 1, WRITE); 836 err = check_lock_range(filp, inode->i_size, 1025 if (start + length > inode->i_size) 1026 length = inode->i_size - start;
|
/linux-master/fs/jfs/ |
H A D | jfs_imap.c | 761 if (S_ISLNK(ip->i_mode) && ip->i_size < IDATASIZE) { 2476 if (ipimap->i_size >> L2PSIZE != imap->im_nextiag + 1) { 2480 "ipimap->i_size is wrong\n"); 2538 ipimap->i_size += PSIZE; 2548 xtTruncate(tid, ipimap, ipimap->i_size - PSIZE, 3014 ip->i_size += PSIZE; 3069 ip->i_size = le64_to_cpu(dip->di_size); 3124 dip->di_size = cpu_to_le64(ip->i_size);
|
/linux-master/include/trace/events/ |
H A D | f2fs.h | 206 __entry->size = inode->i_size; 212 "i_size = %lld, i_nlink = %u, i_blocks = %llu, i_advise = 0x%x", 355 __entry->size = dir->i_size; 360 TP_printk("dev = (%d,%d), dir ino = %lu, i_size = %lld, " 435 __entry->size = inode->i_size; 440 TP_printk("dev = (%d,%d), ino = %lu, i_size = %lld, i_blocks = %llu, " 1008 __entry->size = inode->i_size; 1014 "len = %lld, i_size = %lld, i_blocks = %llu, ret = %d", 2324 __field(loff_t, i_size) 2340 __entry->i_size [all...] |
/linux-master/fs/reiserfs/ |
H A D | super.c | 373 INODE_PKEY(inode), inode->i_size); 2075 !root_inode->i_size) { 2496 loff_t i_size = i_size_read(inode); local 2498 if (off > i_size) 2500 if (off + len > i_size) 2501 len = i_size - off; 2587 if (inode->i_size < off + len - towrite)
|
/linux-master/fs/f2fs/ |
H A D | file.c | 1017 * do not trim all blocks after i_size if target size is 1018 * larger than i_size. 1310 if (dst_inode->i_size < new_size) 1841 if (offset >= inode->i_size) 2846 if (pos_in + len > src->i_size || pos_in + len < pos_in) 2849 olen = len = src->i_size - pos_in; 2850 if (pos_in + len == src->i_size) 2851 len = ALIGN(src->i_size, F2FS_BLKSIZE) - pos_in; 2857 dst_osize = dst->i_size; 2858 if (pos_out + olen > dst->i_size) [all...] |