Lines Matching refs:i_size
39 loff_t i_size, pos; in kernel_read_file() local
55 i_size = i_size_read(file_inode(file)); in kernel_read_file()
56 if (i_size <= 0) { in kernel_read_file()
61 if (i_size > SSIZE_MAX) { in kernel_read_file()
66 if (!file_size && offset == 0 && i_size > buf_size) { in kernel_read_file()
71 whole_file = (offset == 0 && i_size <= buf_size); in kernel_read_file()
77 *file_size = i_size; in kernel_read_file()
80 *buf = allocated = vmalloc(i_size); in kernel_read_file()
91 i_size - pos); in kernel_read_file()
105 if (pos != i_size) { in kernel_read_file()
110 ret = security_kernel_post_read_file(file, *buf, i_size, id); in kernel_read_file()