Home
last modified time | relevance | path

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

/fs/
Dreaddir.c229 int reclen = ALIGN(offsetof(struct linux_dirent, d_name) + namlen + 2, in filldir() local
237 if (reclen > buf->count) in filldir()
249 if (!user_write_access_begin(prev, reclen + prev_reclen)) in filldir()
255 unsafe_put_user(reclen, &dirent->d_reclen, efault_end); in filldir()
256 unsafe_put_user(d_type, (char __user *) dirent + reclen - 1, efault_end); in filldir()
260 buf->current_dir = (void __user *)dirent + reclen; in filldir()
261 buf->prev_reclen = reclen; in filldir()
262 buf->count -= reclen; in filldir()
316 int reclen = ALIGN(offsetof(struct linux_dirent64, d_name) + namlen + 1, in filldir64() local
324 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.c2341 size_t reclen = FUSE_DIRENT_SIZE(dirent); in parse_dirfile() local
2345 if (reclen > nbytes) in parse_dirfile()
2360 buf += reclen; in parse_dirfile()
2361 nbytes -= reclen; in parse_dirfile()
/fs/nilfs2/
Ddir.c330 unsigned int reclen = NILFS_DIR_REC_LEN(namelen); in nilfs_find_entry() local
354 kaddr += nilfs_last_byte(dir, n) - reclen; in nilfs_find_entry()
444 unsigned int reclen = NILFS_DIR_REC_LEN(namelen); in nilfs_add_link() local
470 kaddr += PAGE_SIZE - reclen; in nilfs_add_link()
491 if (!de->inode && rec_len >= reclen) in nilfs_add_link()
493 if (rec_len >= name_len + reclen) in nilfs_add_link()
/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/ext2/
Ddir.c354 unsigned reclen = EXT2_DIR_REC_LEN(namelen); in ext2_find_entry() local
381 kaddr += ext2_last_byte(dir, n) - reclen; in ext2_find_entry()
493 unsigned reclen = EXT2_DIR_REC_LEN(namelen); in ext2_add_link() local
520 kaddr += PAGE_SIZE - reclen; in ext2_add_link()
541 if (!de->inode && rec_len >= reclen) in ext2_add_link()
543 if (rec_len >= name_len + reclen) in ext2_add_link()
/fs/ufs/
Ddir.c256 unsigned reclen = UFS_DIR_REC_LEN(namelen); in ufs_find_entry() local
282 kaddr += ufs_last_byte(dir, n) - reclen; in ufs_find_entry()
311 unsigned reclen = UFS_DIR_REC_LEN(namelen); in ufs_add_link() local
340 kaddr += PAGE_SIZE - reclen; in ufs_add_link()
361 if (!de->d_ino && rec_len >= reclen) in ufs_add_link()
363 if (rec_len >= name_len + reclen) in ufs_add_link()
/fs/nfsd/
Dvfs.c1966 unsigned int reclen; in nfsd_buffered_filldir() local
1968 reclen = ALIGN(sizeof(struct buffered_dirent) + namlen, sizeof(u64)); in nfsd_buffered_filldir()
1969 if (buf->used + reclen > PAGE_SIZE) { in nfsd_buffered_filldir()
1979 buf->used += reclen; in nfsd_buffered_filldir()
2003 unsigned int reclen; in nfsd_buffered_readdir() local
2034 reclen = ALIGN(sizeof(*de) + de->namlen, in nfsd_buffered_readdir()
2036 size -= reclen; in nfsd_buffered_readdir()
2037 de = (struct buffered_dirent *)((char *)de + reclen); in nfsd_buffered_readdir()
/fs/ext4/
Dnamei.c2103 unsigned short reclen = ext4_dir_rec_len(fname_len(fname), dir); in ext4_find_dest_de() local
2109 top = buf + buf_size - reclen; in ext4_find_dest_de()
2118 if ((de->inode ? rlen - nlen : rlen) >= reclen) in ext4_find_dest_de()