struct address_space *mapping = file->f_mapping;
if (!mapping->a_ops->readpage)
- return -ENOEXEC;
+ return -ENODEV;
file_accessed(file);
vma->vm_ops = &generic_file_vm_ops;
return 0;
*pos = i_size_read(inode);
if (limit != RLIM_INFINITY) {
+ gr_learn_resource(current, RLIMIT_FSIZE,*pos, 0);
if (*pos >= limit) {
send_sig(SIGXFSZ, current, 0);
return -EFBIG;