Home
last modified time | relevance | path

Searched refs:reclen (Results 1 – 9 of 9) sorted by relevance

/fs/
Dreaddir.c265 int reclen = ALIGN(offsetof(struct linux_dirent, d_name) + namlen + 2, in filldir() local
273 if (reclen > buf->count) in filldir()
285 if (!user_write_access_begin(prev, reclen + prev_reclen)) in filldir()
291 unsafe_put_user(reclen, &dirent->d_reclen, efault_end); in filldir()
292 unsafe_put_user(d_type, (char __user *) dirent + reclen - 1, efault_end); in filldir()
296 buf->current_dir = (void __user *)dirent + reclen; in filldir()
297 buf->prev_reclen = reclen; in filldir()
298 buf->count -= reclen; in filldir()
352 int reclen = ALIGN(offsetof(struct linux_dirent64, d_name) + namlen + 1, in filldir64() local
360 if (reclen > buf->count) in filldir64()
[all …]
/fs/fuse/
Dreaddir.c38 size_t reclen = FUSE_DIRENT_SIZE(dirent); in fuse_add_dirent_to_cache() local
60 if (offset + reclen > PAGE_SIZE) { in fuse_add_dirent_to_cache()
86 memcpy(addr + offset, dirent, reclen); in fuse_add_dirent_to_cache()
88 fi->rdc.size = (index << PAGE_SHIFT) + offset + reclen; in fuse_add_dirent_to_cache()
133 size_t reclen = FUSE_DIRENT_SIZE(dirent); in parse_dirfile() local
136 if (reclen > nbytes) in parse_dirfile()
144 buf += reclen; in parse_dirfile()
145 nbytes -= reclen; in parse_dirfile()
293 size_t reclen; in parse_dirplusfile() local
300 reclen = FUSE_DIRENTPLUS_SIZE(direntplus); in parse_dirplusfile()
[all …]
Dbacking.c2370 size_t reclen = FUSE_DIRENT_SIZE(dirent); in parse_dirfile() local
2374 if (reclen > nbytes) in parse_dirfile()
2384 buf += reclen; in parse_dirfile()
2385 nbytes -= reclen; in parse_dirfile()
/fs/gfs2/
Ddir.h67 static inline void gfs2_qstr2dirent(const struct qstr *name, u16 reclen, struct gfs2_dirent *dent) in gfs2_qstr2dirent() argument
72 dent->de_rec_len = cpu_to_be16(reclen); in gfs2_qstr2dirent()
/fs/ufs/
Ddir.c262 unsigned reclen = UFS_DIR_REC_LEN(namelen); in ufs_find_entry() local
288 kaddr += ufs_last_byte(dir, n) - reclen; in ufs_find_entry()
317 unsigned reclen = UFS_DIR_REC_LEN(namelen); in ufs_add_link() local
346 kaddr += PAGE_SIZE - reclen; in ufs_add_link()
367 if (!de->d_ino && rec_len >= reclen) in ufs_add_link()
369 if (rec_len >= name_len + reclen) in ufs_add_link()
/fs/nilfs2/
Ddir.c341 unsigned int reclen = NILFS_DIR_REC_LEN(namelen); in nilfs_find_entry() local
363 kaddr += nilfs_last_byte(dir, n) - reclen; in nilfs_find_entry()
477 unsigned int reclen = NILFS_DIR_REC_LEN(namelen); in nilfs_add_link() local
502 kaddr += PAGE_SIZE - reclen; in nilfs_add_link()
523 if (!de->inode && rec_len >= reclen) in nilfs_add_link()
525 if (rec_len >= name_len + reclen) in nilfs_add_link()
/fs/ext2/
Ddir.c346 unsigned reclen = EXT2_DIR_REC_LEN(namelen); in ext2_find_entry() local
369 kaddr += ext2_last_byte(dir, n) - reclen; in ext2_find_entry()
486 unsigned reclen = EXT2_DIR_REC_LEN(namelen); in ext2_add_link() local
509 kaddr += PAGE_SIZE - reclen; in ext2_add_link()
530 if (!de->inode && rec_len >= reclen) in ext2_add_link()
532 if (rec_len >= name_len + reclen) in ext2_add_link()
/fs/nfsd/
Dvfs.c2006 unsigned int reclen; in nfsd_buffered_filldir() local
2008 reclen = ALIGN(sizeof(struct buffered_dirent) + namlen, sizeof(u64)); in nfsd_buffered_filldir()
2009 if (buf->used + reclen > PAGE_SIZE) { in nfsd_buffered_filldir()
2019 buf->used += reclen; in nfsd_buffered_filldir()
2043 unsigned int reclen; in nfsd_buffered_readdir() local
2074 reclen = ALIGN(sizeof(*de) + de->namlen, in nfsd_buffered_readdir()
2076 size -= reclen; in nfsd_buffered_readdir()
2077 de = (struct buffered_dirent *)((char *)de + reclen); in nfsd_buffered_readdir()
/fs/ext4/
Dnamei.c2104 unsigned short reclen = ext4_dir_rec_len(fname_len(fname), dir); in ext4_find_dest_de() local
2110 top = buf + buf_size - reclen; in ext4_find_dest_de()
2119 if ((de->inode ? rlen - nlen : rlen) >= reclen) in ext4_find_dest_de()