60 if (((
unsigned int)(filep->
f_oflags) & O_ACCMODE) == O_RDONLY) {
65 if (!filep->ops || !filep->ops->fallocate) {
72 ret = filep->ops->fallocate(filep, mode, offset, len);
107#if CONFIG_NFILE_DESCRIPTORS > 0
108 struct file *filep = NULL;
113#if CONFIG_NFILE_DESCRIPTORS > 0
114 if ((
unsigned int)fd >= CONFIG_NFILE_DESCRIPTORS)
121#if CONFIG_NFILE_DESCRIPTORS > 0
125 int ret = fs_getfilep(fd, &filep);
131 if (filep->
f_oflags & O_DIRECTORY) {
int fallocate(int fd, int mode, off_t offset, off_t len)
static ssize_t file_fallocate(struct file *filep, int mode, off_t offset, off_t len)