Lines Matching refs:err
29 int err; in sdcardfs_read() local
50 err = vfs_read(lower_file, buf, count, ppos); in sdcardfs_read()
52 if (err >= 0) in sdcardfs_read()
56 return err; in sdcardfs_read()
62 int err; in sdcardfs_write() local
74 err = vfs_write(lower_file, buf, count, ppos); in sdcardfs_write()
76 if (err >= 0) { in sdcardfs_write()
85 return err; in sdcardfs_write()
90 int err; in sdcardfs_readdir() local
97 err = iterate_dir(lower_file, ctx); in sdcardfs_readdir()
99 if (err >= 0) /* copy the atime */ in sdcardfs_readdir()
102 return err; in sdcardfs_readdir()
108 long err = -ENOTTY; in sdcardfs_unlocked_ioctl() local
123 err = -ENOMEM; in sdcardfs_unlocked_ioctl()
128 err = lower_file->f_op->unlocked_ioctl(lower_file, cmd, arg); in sdcardfs_unlocked_ioctl()
131 if (!err) in sdcardfs_unlocked_ioctl()
136 return err; in sdcardfs_unlocked_ioctl()
143 long err = -ENOTTY; in sdcardfs_compat_ioctl() local
158 err = -ENOMEM; in sdcardfs_compat_ioctl()
163 err = lower_file->f_op->compat_ioctl(lower_file, cmd, arg); in sdcardfs_compat_ioctl()
167 return err; in sdcardfs_compat_ioctl()
173 int err = 0; in sdcardfs_mmap() local
193 err = -EINVAL; in sdcardfs_mmap()
204 err = lower_file->f_op->mmap(lower_file, vma); in sdcardfs_mmap()
205 if (err) { in sdcardfs_mmap()
206 pr_err("sdcardfs: lower mmap failed %d\n", err); in sdcardfs_mmap()
227 return err; in sdcardfs_mmap()
232 int err = 0; in sdcardfs_open() local
242 err = -ENOENT; in sdcardfs_open()
247 err = -EACCES; in sdcardfs_open()
254 err = -ENOMEM; in sdcardfs_open()
261 err = -ENOMEM; in sdcardfs_open()
270 err = PTR_ERR(lower_file); in sdcardfs_open()
280 if (err) in sdcardfs_open()
289 return err; in sdcardfs_open()
294 int err = 0; in sdcardfs_flush() local
300 err = lower_file->f_op->flush(lower_file, id); in sdcardfs_flush()
303 return err; in sdcardfs_flush()
324 int err; in sdcardfs_fsync() local
329 err = __generic_file_fsync(file, start, end, datasync); in sdcardfs_fsync()
330 if (err) in sdcardfs_fsync()
335 err = vfs_fsync_range(lower_file, start, end, datasync); in sdcardfs_fsync()
338 return err; in sdcardfs_fsync()
343 int err = 0; in sdcardfs_fasync() local
348 err = lower_file->f_op->fasync(fd, lower_file, flag); in sdcardfs_fasync()
350 return err; in sdcardfs_fasync()
361 int err; in sdcardfs_file_llseek() local
364 err = generic_file_llseek(file, offset, whence); in sdcardfs_file_llseek()
365 if (err < 0) in sdcardfs_file_llseek()
369 err = generic_file_llseek(lower_file, offset, whence); in sdcardfs_file_llseek()
372 return err; in sdcardfs_file_llseek()
380 int err; in sdcardfs_read_iter() local
385 err = -EINVAL; in sdcardfs_read_iter()
391 err = lower_file->f_op->read_iter(iocb, iter); in sdcardfs_read_iter()
395 if (err >= 0 || err == -EIOCBQUEUED) in sdcardfs_read_iter()
399 return err; in sdcardfs_read_iter()
407 int err; in sdcardfs_write_iter() local
413 err = -EINVAL; in sdcardfs_write_iter()
419 err = lower_file->f_op->write_iter(iocb, iter); in sdcardfs_write_iter()
423 if (err >= 0 || err == -EIOCBQUEUED) { in sdcardfs_write_iter()
432 return err; in sdcardfs_write_iter()