Searched refs:reclen (Results 1 – 9 of 9) sorted by relevance
/fs/ |
D | readdir.c | 155 int reclen = ALIGN(NAME_OFFSET(dirent) + namlen + 2, sizeof(long)); in filldir() local 158 if (reclen > buf->count) in filldir() 173 if (__put_user(reclen, &dirent->d_reclen)) in filldir() 179 if (__put_user(d_type, (char __user *) dirent + reclen - 1)) in filldir() 182 dirent = (void __user *)dirent + reclen; in filldir() 184 buf->count -= reclen; in filldir() 240 int reclen = ALIGN(NAME_OFFSET(dirent) + namlen + 1, sizeof(u64)); in filldir64() local 243 if (reclen > buf->count) in filldir64() 255 if (__put_user(reclen, &dirent->d_reclen)) in filldir64() 264 dirent = (void __user *)dirent + reclen; in filldir64() [all …]
|
D | compat.c | 900 int reclen = ALIGN(NAME_OFFSET(dirent) + namlen + 2, sizeof(compat_long_t)); in compat_filldir() local 903 if (reclen > buf->count) in compat_filldir() 918 if (__put_user(reclen, &dirent->d_reclen)) in compat_filldir() 924 if (__put_user(d_type, (char __user *) dirent + reclen - 1)) in compat_filldir() 927 dirent = (void __user *)dirent + reclen; in compat_filldir() 929 buf->count -= reclen; in compat_filldir() 988 int reclen = ALIGN(jj + namlen + 1, sizeof(u64)); in compat_filldir64() local 992 if (reclen > buf->count) in compat_filldir64() 1006 if (__put_user(reclen, &dirent->d_reclen)) in compat_filldir64() 1015 dirent = (void __user *)dirent + reclen; in compat_filldir64() [all …]
|
/fs/gfs2/ |
D | dir.h | 52 static inline void gfs2_qstr2dirent(const struct qstr *name, u16 reclen, struct gfs2_dirent *dent) in gfs2_qstr2dirent() argument 57 dent->de_rec_len = cpu_to_be16(reclen); in gfs2_qstr2dirent()
|
/fs/ufs/ |
D | dir.c | 258 unsigned reclen = UFS_DIR_REC_LEN(namelen); in ufs_find_entry() local 284 kaddr += ufs_last_byte(dir, n) - reclen; in ufs_find_entry() 319 unsigned reclen = UFS_DIR_REC_LEN(namelen); in ufs_add_link() local 348 kaddr += PAGE_CACHE_SIZE - reclen; in ufs_add_link() 369 if (!de->d_ino && rec_len >= reclen) in ufs_add_link() 371 if (rec_len >= name_len + reclen) in ufs_add_link()
|
/fs/ext2/ |
D | dir.c | 365 unsigned reclen = EXT2_DIR_REC_LEN(namelen); in ext2_find_entry() local 389 kaddr += ext2_last_byte(dir, n) - reclen; in ext2_find_entry() 482 unsigned reclen = EXT2_DIR_REC_LEN(namelen); in ext2_add_link() local 508 kaddr += PAGE_CACHE_SIZE - reclen; in ext2_add_link() 529 if (!de->inode && rec_len >= reclen) in ext2_add_link() 531 if (rec_len >= name_len + reclen) in ext2_add_link()
|
/fs/nfsd/ |
D | vfs.c | 1846 unsigned int reclen; in nfsd_buffered_filldir() local 1848 reclen = ALIGN(sizeof(struct buffered_dirent) + namlen, sizeof(u64)); in nfsd_buffered_filldir() 1849 if (buf->used + reclen > PAGE_SIZE) { in nfsd_buffered_filldir() 1859 buf->used += reclen; in nfsd_buffered_filldir() 1880 unsigned int reclen; in nfsd_buffered_readdir() local 1909 reclen = ALIGN(sizeof(*de) + de->namlen, in nfsd_buffered_readdir() 1911 size -= reclen; in nfsd_buffered_readdir() 1912 de = (struct buffered_dirent *)((char *)de + reclen); in nfsd_buffered_readdir()
|
/fs/fuse/ |
D | dir.c | 994 size_t reclen = FUSE_DIRENT_SIZE(dirent); in parse_dirfile() local 998 if (reclen > nbytes) in parse_dirfile() 1006 buf += reclen; in parse_dirfile() 1007 nbytes -= reclen; in parse_dirfile()
|
/fs/ext3/ |
D | namei.c | 1261 unsigned short reclen; in add_dirent_to_buf() local 1265 reclen = EXT3_DIR_REC_LEN(namelen); in add_dirent_to_buf() 1268 top = bh->b_data + dir->i_sb->s_blocksize - reclen; in add_dirent_to_buf() 1281 if ((de->inode? rlen - nlen: rlen) >= reclen) in add_dirent_to_buf()
|
/fs/ext4/ |
D | namei.c | 1271 unsigned short reclen; in add_dirent_to_buf() local 1275 reclen = EXT4_DIR_REC_LEN(namelen); in add_dirent_to_buf() 1278 top = bh->b_data + dir->i_sb->s_blocksize - reclen; in add_dirent_to_buf() 1291 if ((de->inode? rlen - nlen: rlen) >= reclen) in add_dirent_to_buf()
|