Home
last modified time | relevance | path

Searched refs:namlen (Results 1 – 20 of 20) sorted by relevance

/linux-6.3-rc2/fs/
A Dreaddir.c153 buf->result = verify_dirent_name(name, namlen); in fillonedir()
164 (unsigned long)(dirent->d_name + namlen + 1) - in fillonedir()
169 unsafe_put_user(namlen, &dirent->d_namlen, efault_end); in fillonedir()
233 buf->error = verify_dirent_name(name, namlen); in filldir()
320 buf->error = verify_dirent_name(name, namlen); in filldir64()
401 int namlen, loff_t offset, u64 ino, in compat_fillonedir() argument
411 buf->result = verify_dirent_name(name, namlen); in compat_fillonedir()
422 (unsigned long)(dirent->d_name + namlen + 1) - in compat_fillonedir()
427 unsafe_put_user(namlen, &dirent->d_namlen, efault_end); in compat_fillonedir()
482 namlen + 2, sizeof(compat_long_t)); in compat_filldir()
[all …]
/linux-6.3-rc2/fs/jfs/
A Djfs_dtree.c594 ciKey.namlen = key->namlen; in dtSearch()
2037 s->namlen = 0; in dtSplitRoot()
3312 namlen = ih->namlen; in dtCompare()
3395 namlen = lh->namlen; in ciCompare()
3408 namlen = ih->namlen; in ciCompare()
3501 namlen = min(lkey.namlen, rkey.namlen); in ciGetLeafPrefixKey()
3503 namlen; pl++, pr++, namlen--, klen++, kname++) { in ciGetLeafPrefixKey()
3512 if (lkey.namlen < rkey.namlen) { in ciGetLeafPrefixKey()
3549 namlen = lh->namlen; in dtGetKey()
3558 namlen = ih->namlen; in dtGetKey()
[all …]
A Djfs_unicode.c116 uniName->namlen = jfs_strtoUCS(uniName->name, dentry->d_name.name, in get_UCSname()
119 if (uniName->namlen < 0) { in get_UCSname()
121 return uniName->namlen; in get_UCSname()
A Djfs_dtree.h56 u8 namlen; /* 1: */ member
75 u8 namlen; /* 1: */ member
A Djfs_types.h123 int namlen; member
/linux-6.3-rc2/fs/nfsd/
A Dnfs3xdr.c981 const char *name, int namlen, u64 ino) in compose_entry_fh() argument
990 if (isdotent(name, namlen)) { in compose_entry_fh()
991 if (namlen == 2) { in compose_entry_fh()
1004 dchild = lookup_positive_unlocked(name, dparent, namlen); in compose_entry_fh()
1038 int namlen, loff_t offset, u64 ino) in svcxdr_encode_entry3_common() argument
1077 int nfs3svc_encode_entry3(void *data, const char *name, int namlen, in nfs3svc_encode_entry3() argument
1089 if (!svcxdr_encode_entry3_common(resp, name, namlen, offset, ino)) in nfs3svc_encode_entry3()
1105 int namlen, u64 ino) in svcxdr_encode_entry3_plus() argument
1113 if (compose_entry_fh(resp, fhp, name, namlen, ino) != nfs_ok) in svcxdr_encode_entry3_plus()
1164 if (!svcxdr_encode_entry3_common(resp, name, namlen, offset, ino)) in nfs3svc_encode_entryplus3()
[all …]
A Dnfsxdr.c573 int namlen, loff_t offset, u64 ino) in svcxdr_encode_entry_common() argument
584 if (xdr_stream_encode_opaque(xdr, name, min(namlen, NFS2_MAXNAMLEN)) < 0) in svcxdr_encode_entry_common()
612 int nfssvc_encode_entry(void *data, const char *name, int namlen, in nfssvc_encode_entry() argument
624 if (!svcxdr_encode_entry_common(resp, name, namlen, offset, ino)) in nfssvc_encode_entry()
A Dxdr3.h304 int nfs3svc_encode_entry3(void *data, const char *name, int namlen,
306 int nfs3svc_encode_entryplus3(void *data, const char *name, int namlen,
A Dvfs.c1908 int namlen; member
1921 int namlen, loff_t offset, u64 ino, in nfsd_buffered_filldir() argument
1929 reclen = ALIGN(sizeof(struct buffered_dirent) + namlen, sizeof(u64)); in nfsd_buffered_filldir()
1935 de->namlen = namlen; in nfsd_buffered_filldir()
1939 memcpy(de->name, name, namlen); in nfsd_buffered_filldir()
1986 if (func(cdp, de->name, de->namlen, de->offset, in nfsd_buffered_readdir()
1993 trace_nfsd_dirent(fhp, de->ino, de->name, de->namlen); in nfsd_buffered_readdir()
1995 reclen = ALIGN(sizeof(*de) + de->namlen, in nfsd_buffered_readdir()
A Dxdr.h164 int nfssvc_encode_entry(void *data, const char *name, int namlen,
A Dnfs4recover.c270 nfsd4_build_namelist(struct dir_context *__ctx, const char *name, int namlen, in nfsd4_build_namelist() argument
277 if (namlen != HEXDIR_LEN - 1) in nfsd4_build_namelist()
339 nfsd4_unlink_clid_dir(char *name, int namlen, struct nfsd_net *nn) in nfsd4_unlink_clid_dir() argument
344 dprintk("NFSD: nfsd4_unlink_clid_dir. name %.*s\n", namlen, name); in nfsd4_unlink_clid_dir()
348 dentry = lookup_one_len(name, dir, namlen); in nfsd4_unlink_clid_dir()
A Dtrace.h476 int namlen),
477 TP_ARGS(fhp, ino, name, namlen),
481 __string_len(name, name, namlen)
486 __assign_str_len(name, name, namlen)
A Dnfs4xdr.c3518 const char *name, int namlen) in nfsd4_encode_dirent_fattr() argument
3525 dentry = lookup_positive_unlocked(name, cd->rd_fhp->fh_dentry, namlen); in nfsd4_encode_dirent_fattr()
3587 nfsd4_encode_dirent(void *ccdv, const char *name, int namlen, in nfsd4_encode_dirent() argument
3602 if (name && isdotent(name, namlen)) { in nfsd4_encode_dirent()
3618 p = xdr_reserve_space(xdr, 3*4 + namlen); in nfsd4_encode_dirent()
3622 p = xdr_encode_array(p, name, namlen); /* name length & name */ in nfsd4_encode_dirent()
3624 nfserr = nfsd4_encode_dirent_fattr(xdr, cd, name, namlen); in nfsd4_encode_dirent()
3672 name_and_cookie = 4 + 4 * XDR_QUADLEN(namlen) + 8; in nfsd4_encode_dirent()
/linux-6.3-rc2/include/uapi/linux/
A Dnfs_mount.h42 int namlen; /* 2 */ member
/linux-6.3-rc2/arch/alpha/kernel/
A Dosf_sys.c112 osf_filldir(struct dir_context *ctx, const char *name, int namlen, in osf_filldir() argument
118 unsigned int reclen = ALIGN(NAME_OFFSET + namlen + 1, sizeof(u32)); in osf_filldir()
136 put_user(namlen, &dirent->d_namlen) || in osf_filldir()
138 copy_to_user(dirent->d_name, name, namlen) || in osf_filldir()
139 put_user(0, dirent->d_name + namlen)) in osf_filldir()
/linux-6.3-rc2/fs/ksmbd/
A Dvfs.c1107 static bool __dir_empty(struct dir_context *ctx, const char *name, int namlen, in __dir_empty() argument
1143 int namlen, loff_t offset, u64 ino, in __caseless_lookup() argument
1151 if (buf->used != namlen) in __caseless_lookup()
1157 .len = namlen}; in __caseless_lookup()
1162 cmp = strncasecmp((char *)buf->private, name, namlen); in __caseless_lookup()
1164 memcpy((char *)buf->private, name, namlen); in __caseless_lookup()
A Dsmb2pdu.c3774 static bool __query_dir(struct dir_context *ctx, const char *name, int namlen, in __query_dir() argument
3791 if (!match_pattern(name, namlen, priv->search_pattern)) in __query_dir()
3795 d_info->name_len = namlen; in __query_dir()
/linux-6.3-rc2/fs/nfs/
A Dfs_context.c659 ctx->namlen = result.uint_32; in nfs_fs_context_parse_param()
988 data->namlen = 0; in nfs23_parse_monolithic()
1064 ctx->namlen = data->namlen; in nfs23_parse_monolithic()
A Dinternal.h99 unsigned int namlen; member
A Dclient.c743 server->namelen = ctx->namlen; in nfs_init_server()

Completed in 79 milliseconds