/fs/ |
D | readdir.c | 73 static int fillonedir(void * __buf, const char * name, int namlen, loff_t offset, in fillonedir() argument 90 (unsigned long)(dirent->d_name + namlen + 1) - in fillonedir() 95 __put_user(namlen, &dirent->d_namlen) || in fillonedir() 96 __copy_to_user(dirent->d_name, name, namlen) || in fillonedir() 97 __put_user(0, dirent->d_name + namlen)) in fillonedir() 149 static int filldir(void * __buf, const char * name, int namlen, loff_t offset, in filldir() argument 155 int reclen = ALIGN(NAME_OFFSET(dirent) + namlen + 2, sizeof(long)); in filldir() 175 if (copy_to_user(dirent->d_name, name, namlen)) in filldir() 177 if (__put_user(0, dirent->d_name + namlen)) in filldir() 235 static int filldir64(void * __buf, const char * name, int namlen, loff_t offset, in filldir64() argument [all …]
|
D | compat.c | 824 static int compat_fillonedir(void *__buf, const char *name, int namlen, in compat_fillonedir() argument 841 (unsigned long)(dirent->d_name + namlen + 1) - in compat_fillonedir() 846 __put_user(namlen, &dirent->d_namlen) || in compat_fillonedir() 847 __copy_to_user(dirent->d_name, name, namlen) || in compat_fillonedir() 848 __put_user(0, dirent->d_name + namlen)) in compat_fillonedir() 894 static int compat_filldir(void *__buf, const char *name, int namlen, in compat_filldir() argument 900 int reclen = ALIGN(NAME_OFFSET(dirent) + namlen + 2, sizeof(compat_long_t)); in compat_filldir() 920 if (copy_to_user(dirent->d_name, name, namlen)) in compat_filldir() 922 if (__put_user(0, dirent->d_name + namlen)) in compat_filldir() 982 static int compat_filldir64(void * __buf, const char * name, int namlen, loff_t offset, in compat_filldir64() argument [all …]
|
/fs/jfs/ |
D | jfs_dtree.c | 605 ciKey.namlen = key->namlen; in dtSearch() 852 n = NDTLEAF(name->namlen); in dtInsert() 856 n = NDTLEAF_LEGACY(name->namlen); in dtInsert() 1202 key.name[key.namlen] = 0; in dtSplitUp() 1208 n = NDTINTERNAL(key.namlen); in dtSplitUp() 1213 n = NDTINTERNAL(key.namlen); in dtSplitUp() 1525 n = NDTLEAF(ldtentry->namlen); in dtSplitPage() 1528 namlen); in dtSplitPage() 1533 n = NDTINTERNAL(idtentry->namlen); in dtSplitPage() 2046 s->namlen = 0; in dtSplitRoot() [all …]
|
D | jfs_unicode.c | 129 uniName->namlen = jfs_strtoUCS(uniName->name, dentry->d_name.name, in get_UCSname() 132 if (uniName->namlen < 0) { in get_UCSname() 134 return uniName->namlen; in get_UCSname()
|
D | jfs_dtree.h | 69 u8 namlen; /* 1: */ member 88 u8 namlen; /* 1: */ member
|
D | jfs_types.h | 154 int namlen; member
|
/fs/nfsd/ |
D | nfs3xdr.c | 804 int namlen, u64 ino) in encode_entry_baggage() argument 808 p = xdr_encode_array(p, name, namlen);/* name length & name */ in encode_entry_baggage() 829 const char *name, int namlen) in compose_entry_fh() argument 839 if (isdotent(name, namlen)) { in compose_entry_fh() 840 if (namlen == 2) { in compose_entry_fh() 850 dchild = lookup_one_len(name, dparent, namlen); in compose_entry_fh() 874 encode_entry(struct readdir_cd *ccd, const char *name, int namlen, in encode_entry() argument 905 if (namlen > NFS3_MAXNAMLEN) in encode_entry() 906 namlen = NFS3_MAXNAMLEN; in encode_entry() 908 slen = XDR_QUADLEN(namlen); in encode_entry() [all …]
|
D | nfs4recover.c | 196 nfsd4_build_dentrylist(void *arg, const char *name, int namlen, in nfsd4_build_dentrylist() argument 205 if (name && isdotent(name, namlen)) in nfsd4_build_dentrylist() 207 dentry = lookup_one_len(name, parent, namlen); in nfsd4_build_dentrylist() 297 nfsd4_unlink_clid_dir(char *name, int namlen) in nfsd4_unlink_clid_dir() argument 302 dprintk("NFSD: nfsd4_unlink_clid_dir. name %.*s\n", namlen, name); in nfsd4_unlink_clid_dir() 305 dentry = lookup_one_len(name, rec_dir.dentry, namlen); in nfsd4_unlink_clid_dir()
|
D | nfsxdr.c | 504 int namlen, loff_t offset, u64 ino, unsigned int d_type) in nfssvc_encode_entry() argument 522 if (namlen > NFS2_MAXNAMLEN) in nfssvc_encode_entry() 523 namlen = NFS2_MAXNAMLEN;/* truncate filename */ in nfssvc_encode_entry() 525 slen = XDR_QUADLEN(namlen); in nfssvc_encode_entry() 536 p = xdr_encode_array(p, name, namlen);/* name length & name */ in nfssvc_encode_entry()
|
D | vfs.c | 1830 int namlen; member 1841 static int nfsd_buffered_filldir(void *__buf, const char *name, int namlen, in nfsd_buffered_filldir() argument 1848 reclen = ALIGN(sizeof(struct buffered_dirent) + namlen, sizeof(u64)); in nfsd_buffered_filldir() 1854 de->namlen = namlen; in nfsd_buffered_filldir() 1858 memcpy(de->name, name, namlen); in nfsd_buffered_filldir() 1902 if (func(cdp, de->name, de->namlen, de->offset, in nfsd_buffered_readdir() 1909 reclen = ALIGN(sizeof(*de) + de->namlen, in nfsd_buffered_readdir()
|
D | nfs4xdr.c | 1836 const char *name, int namlen, __be32 *p, int *buflen) in nfsd4_encode_dirent_fattr() argument 1843 dentry = lookup_one_len(name, cd->rd_fhp->fh_dentry, namlen); in nfsd4_encode_dirent_fattr() 1901 nfsd4_encode_dirent(void *ccdv, const char *name, int namlen, in nfsd4_encode_dirent() argument 1911 if (name && isdotent(name, namlen)) { in nfsd4_encode_dirent() 1919 buflen = cd->buflen - 4 - XDR_QUADLEN(namlen); in nfsd4_encode_dirent() 1926 p = xdr_encode_array(p, name, namlen); /* name length & name */ in nfsd4_encode_dirent() 1928 nfserr = nfsd4_encode_dirent_fattr(cd, name, namlen, p, &buflen); in nfsd4_encode_dirent()
|
/fs/nfs/ |
D | internal.h | 39 int namlen; member
|
D | super.c | 1134 mnt->namlen = option; in nfs_parse_mount_options() 1566 data->namlen = 0; in nfs_validate_mount_data() 1618 args->namlen = data->namlen; in nfs_validate_mount_data()
|
D | client.c | 807 server->namelen = data->namlen; in nfs_init_server()
|