Lines Matching refs:i_size
489 if (round_up(inode->i_size, PAGE_SIZE) == in shmem_unused_huge_shrink()
490 round_up(inode->i_size, HPAGE_PMD_SIZE)) { in shmem_unused_huge_shrink()
520 (inode->i_size & HPAGE_PMD_MASK) >> PAGE_SHIFT); in shmem_unused_huge_shrink()
752 if (!vma->vm_pgoff && vma->vm_end - vma->vm_start >= inode->i_size) in shmem_swap_usage()
1029 loff_t oldsize = inode->i_size; in shmem_setattr()
1090 shmem_unacct_size(info->flags, inode->i_size); in shmem_evict_inode()
1091 inode->i_size = 0; in shmem_evict_inode()
1815 loff_t i_size; in shmem_getpage_gfp() local
1821 i_size = round_up(i_size_read(inode), PAGE_SIZE); in shmem_getpage_gfp()
1822 if (i_size >= HPAGE_PMD_SIZE && in shmem_getpage_gfp()
1823 i_size >> PAGE_SHIFT >= off) in shmem_getpage_gfp()
2188 if (!user_shm_lock(inode->i_size, user)) in shmem_lock()
2194 user_shm_unlock(inode->i_size, user); in shmem_lock()
2281 inode->i_size = 2 * BOGO_DIRENT_SIZE; in shmem_get_inode()
2483 if ((info->seals & F_SEAL_GROW) && pos + len > inode->i_size) in shmem_write_begin()
2497 if (pos + copied > inode->i_size) in shmem_write_end()
2553 loff_t i_size = i_size_read(inode); in shmem_file_read_iter() local
2555 end_index = i_size >> PAGE_SHIFT; in shmem_file_read_iter()
2559 nr = i_size & ~PAGE_MASK; in shmem_file_read_iter()
2581 i_size = i_size_read(inode); in shmem_file_read_iter()
2582 end_index = i_size >> PAGE_SHIFT; in shmem_file_read_iter()
2584 nr = i_size & ~PAGE_MASK; in shmem_file_read_iter()
2699 if (offset < 0 || offset >= inode->i_size) in shmem_file_llseek()
2703 end = (inode->i_size + PAGE_SIZE - 1) >> PAGE_SHIFT; in shmem_file_llseek()
2707 if (new_offset < inode->i_size) in shmem_file_llseek()
2712 offset = inode->i_size; in shmem_file_llseek()
2776 if ((info->seals & F_SEAL_GROW) && offset + len > inode->i_size) { in shmem_fallocate()
2842 if (!(mode & FALLOC_FL_KEEP_SIZE) && offset + len > inode->i_size) in shmem_fallocate()
2896 dir->i_size += BOGO_DIRENT_SIZE; in shmem_mknod()
2968 dir->i_size += BOGO_DIRENT_SIZE; in shmem_link()
2985 dir->i_size -= BOGO_DIRENT_SIZE; in shmem_unlink()
3089 old_dir->i_size -= BOGO_DIRENT_SIZE; in shmem_rename2()
3090 new_dir->i_size += BOGO_DIRENT_SIZE; in shmem_rename2()
3123 inode->i_size = len-1; in shmem_symlink()
3146 dir->i_size += BOGO_DIRENT_SIZE; in shmem_symlink()
3992 loff_t i_size; in shmem_huge_enabled() local
4009 i_size = round_up(i_size_read(inode), PAGE_SIZE); in shmem_huge_enabled()
4010 if (i_size >= HPAGE_PMD_SIZE && in shmem_huge_enabled()
4011 i_size >> PAGE_SHIFT >= off) in shmem_huge_enabled()
4115 inode->i_size = size; in __shmem_file_setup()