Lines Matching refs:reclen
225 int reclen = ALIGN(offsetof(struct linux_dirent, d_name) + namlen + 2, in filldir() local
233 if (reclen > buf->count) in filldir()
245 if (!user_access_begin(prev, reclen + prev_reclen)) in filldir()
251 unsafe_put_user(reclen, &dirent->d_reclen, efault_end); in filldir()
252 unsafe_put_user(d_type, (char __user *) dirent + reclen - 1, efault_end); in filldir()
256 buf->current_dir = (void __user *)dirent + reclen; in filldir()
257 buf->prev_reclen = reclen; in filldir()
258 buf->count -= reclen; in filldir()
315 int reclen = ALIGN(offsetof(struct linux_dirent64, d_name) + namlen + 1, in filldir64() local
323 if (reclen > buf->count) in filldir64()
330 if (!user_access_begin(prev, reclen + prev_reclen)) in filldir64()
336 unsafe_put_user(reclen, &dirent->d_reclen, efault_end); in filldir64()
341 buf->prev_reclen = reclen; in filldir64()
342 buf->current_dir = (void __user *)dirent + reclen; in filldir64()
343 buf->count -= reclen; in filldir64()
486 int reclen = ALIGN(offsetof(struct compat_linux_dirent, d_name) + in compat_filldir() local
490 if (reclen > buf->count) in compat_filldir()
507 if (__put_user(reclen, &dirent->d_reclen)) in compat_filldir()
513 if (__put_user(d_type, (char __user *) dirent + reclen - 1)) in compat_filldir()
516 dirent = (void __user *)dirent + reclen; in compat_filldir()
518 buf->count -= reclen; in compat_filldir()