Home
last modified time | relevance | path

Searched refs:max_len (Results 1 – 25 of 44) sorted by relevance

12

/fs/ntfs3/
A Dlznt.c32 size_t max_len; member
39 size_t max_len) in get_match_len() argument
63 if (ctx->max_len > 3) in longest_match_std()
71 if (ctx->max_len > 3) in longest_match_std()
91 size_t max_len; in longest_match_best() local
97 max_len = 0; in longest_match_best()
102 max_len = len; in longest_match_best()
107 return max_len >= 3 ? max_len : 0; in longest_match_best()
164 size_t max_len; in compress_chunk() local
172 if (!max_len) { in compress_chunk()
[all …]
/fs/nfs/
A Dexport.c35 nfs_encode_fh(struct inode *inode, __u32 *p, int *max_len, struct inode *parent) in nfs_encode_fh() argument
43 __func__, *max_len, inode, parent); in nfs_encode_fh()
45 if (*max_len < len) { in nfs_encode_fh()
47 __func__, *max_len, len); in nfs_encode_fh()
48 *max_len = len; in nfs_encode_fh()
57 *max_len = len; in nfs_encode_fh()
59 __func__, NFS_FILEID(inode), inode->i_mode, *max_len); in nfs_encode_fh()
60 return *max_len; in nfs_encode_fh()
/fs/ceph/
A Dexport.c54 if (*max_len < snap_handle_length) { in ceph_encode_snapfh()
55 *max_len = snap_handle_length; in ceph_encode_snapfh()
87 *max_len = snap_handle_length; in ceph_encode_snapfh()
94 static int ceph_encode_fh(struct inode *inode, u32 *rawfh, int *max_len, in ceph_encode_fh() argument
103 return ceph_encode_snapfh(inode, rawfh, max_len, parent_inode); in ceph_encode_fh()
105 if (parent_inode && (*max_len < connected_handle_length)) { in ceph_encode_fh()
106 *max_len = connected_handle_length; in ceph_encode_fh()
108 } else if (*max_len < handle_length) { in ceph_encode_fh()
109 *max_len = handle_length; in ceph_encode_fh()
119 *max_len = connected_handle_length; in ceph_encode_fh()
[all …]
/fs/isofs/
A Dexport.c113 int *max_len, in isofs_export_encode_fh() argument
117 int len = *max_len; in isofs_export_encode_fh()
128 *max_len = 5; in isofs_export_encode_fh()
131 *max_len = 3; in isofs_export_encode_fh()
149 *max_len = len; in isofs_export_encode_fh()
/fs/exportfs/
A Dexpfs.c356 int *max_len) in exportfs_encode_ino64_fid() argument
358 if (*max_len < FILEID_INO64_GEN_LEN) { in exportfs_encode_ino64_fid()
359 *max_len = FILEID_INO64_GEN_LEN; in exportfs_encode_ino64_fid()
365 *max_len = FILEID_INO64_GEN_LEN; in exportfs_encode_ino64_fid()
381 int *max_len, struct inode *parent, int flags) in exportfs_encode_inode_fh() argument
390 type = exportfs_encode_ino64_fid(inode, fid, max_len); in exportfs_encode_inode_fh()
392 type = nop->encode_fh(inode, fid->raw, max_len, parent); in exportfs_encode_inode_fh()
414 int exportfs_encode_fh(struct dentry *dentry, struct fid *fid, int *max_len, in exportfs_encode_fh() argument
430 error = exportfs_encode_inode_fh(inode, fid, max_len, parent, flags); in exportfs_encode_fh()
/fs/ocfs2/
A Dexport.c192 static int ocfs2_encode_fh(struct inode *inode, u32 *fh_in, int *max_len, in ocfs2_encode_fh() argument
195 int len = *max_len; in ocfs2_encode_fh()
209 *max_len = 6; in ocfs2_encode_fh()
213 *max_len = 3; in ocfs2_encode_fh()
243 *max_len = len; in ocfs2_encode_fh()
/fs/xfs/
A Dxfs_export.c44 int *max_len, in xfs_fs_encode_fh() argument
77 if (*max_len < len) { in xfs_fs_encode_fh()
78 *max_len = len; in xfs_fs_encode_fh()
81 *max_len = len; in xfs_fs_encode_fh()
A Dxfs_bmap_util.c257 int64_t bmv_end, max_len; in xfs_getbmap() local
294 max_len = 1LL << 32; in xfs_getbmap()
305 max_len = mp->m_super->s_maxbytes; in xfs_getbmap()
307 max_len = XFS_ISIZE(ip); in xfs_getbmap()
328 max_len = mp->m_super->s_maxbytes; in xfs_getbmap()
330 max_len = XFS_ISIZE(ip); in xfs_getbmap()
351 max_len = XFS_FSB_TO_BB(mp, XFS_B_TO_FSB(mp, max_len)); in xfs_getbmap()
352 bmv->bmv_length = max(0LL, max_len - bmv->bmv_offset); in xfs_getbmap()
/fs/iomap/
A Dioend.c378 unsigned int max_len, bool is_append) in iomap_split_ioend() argument
389 max_len = min(max_len, in iomap_split_ioend()
392 sector_offset = bio_split_rw_at(bio, lim, &nr_segs, max_len); in iomap_split_ioend()
398 if (bio->bi_iter.bi_size <= max_len) in iomap_split_ioend()
400 sector_offset = max_len >> SECTOR_SHIFT; in iomap_split_ioend()
/fs/btrfs/
A Dexport.c18 static int btrfs_encode_fh(struct inode *inode, u32 *fh, int *max_len, in btrfs_encode_fh() argument
22 int len = *max_len; in btrfs_encode_fh()
26 *max_len = BTRFS_FID_SIZE_CONNECTABLE; in btrfs_encode_fh()
29 *max_len = BTRFS_FID_SIZE_NON_CONNECTABLE; in btrfs_encode_fh()
57 *max_len = len; in btrfs_encode_fh()
/fs/crypto/
A Dfname.c245 u32 orig_len, u32 max_len, in __fscrypt_fname_encrypted_size() argument
252 if (orig_len > max_len) in __fscrypt_fname_encrypted_size()
256 *encrypted_len_ret = min(encrypted_len, max_len); in __fscrypt_fname_encrypted_size()
275 u32 max_len, u32 *encrypted_len_ret) in fscrypt_fname_encrypted_size() argument
278 orig_len, max_len, in fscrypt_fname_encrypted_size()
A Dhooks.c241 unsigned int len, unsigned int max_len, in fscrypt_prepare_symlink() argument
256 if (disk_link->len > max_len) in fscrypt_prepare_symlink()
275 max_len - sizeof(struct fscrypt_symlink_data) - 1, in fscrypt_prepare_symlink()
/fs/kernfs/
A Dmount.c82 static int kernfs_encode_fh(struct inode *inode, __u32 *fh, int *max_len, in kernfs_encode_fh() argument
87 if (*max_len < 2) { in kernfs_encode_fh()
88 *max_len = 2; in kernfs_encode_fh()
92 *max_len = 2; in kernfs_encode_fh()
/fs/ubifs/
A Dlog.c361 int err, i, max_len, len; in ubifs_log_start_commit() local
367 max_len = UBIFS_CS_NODE_SZ + c->jhead_cnt * UBIFS_REF_NODE_SZ; in ubifs_log_start_commit()
368 max_len = ALIGN(max_len, c->min_io_size); in ubifs_log_start_commit()
369 buf = cs = kmalloc(max_len, GFP_NOFS); in ubifs_log_start_commit()
A Dtnc_misc.c366 if (c->ranges[type].max_len == 0) { in read_znode()
375 zbr->len > c->ranges[type].max_len) { in read_znode()
380 c->ranges[type].max_len); in read_znode()
A Dsuper.c592 c->ranges[UBIFS_AUTH_NODE].max_len = UBIFS_AUTH_NODE_SZ + in init_constants_early()
595 c->ranges[UBIFS_SIG_NODE].max_len = c->leb_size - UBIFS_SB_NODE_SZ; in init_constants_early()
598 c->ranges[UBIFS_INO_NODE].max_len = UBIFS_MAX_INO_NODE_SZ; in init_constants_early()
601 c->ranges[UBIFS_ORPH_NODE].max_len = c->leb_size; in init_constants_early()
603 c->ranges[UBIFS_DENT_NODE].max_len = UBIFS_MAX_DENT_NODE_SZ; in init_constants_early()
605 c->ranges[UBIFS_XENT_NODE].max_len = UBIFS_MAX_XENT_NODE_SZ; in init_constants_early()
607 c->ranges[UBIFS_DATA_NODE].max_len = UBIFS_MAX_DATA_NODE_SZ; in init_constants_early()
617 c->ranges[UBIFS_IDX_NODE].max_len = INT_MAX; in init_constants_early()
687 c->ranges[UBIFS_IDX_NODE].max_len = tmp; in init_constants_sb()
/fs/smb/server/
A Dsmb2misc.c304 unsigned int req_len = 0, expect_resp_len = 0, calc_credit_num, max_len; in smb2_validate_credit_charge() local
337 max_len = max_t(unsigned int, req_len, expect_resp_len); in smb2_validate_credit_charge()
338 calc_credit_num = DIV_ROUND_UP(max_len, SMB2_MAX_BUFFER_SIZE); in smb2_validate_credit_charge()
/fs/f2fs/
A Ddir.c217 int max_len = 0; in f2fs_find_target_dentry() local
225 max_len++; in f2fs_find_target_dentry()
246 if (max_slots && max_len > *max_slots) in f2fs_find_target_dentry()
247 *max_slots = max_len; in f2fs_find_target_dentry()
248 max_len = 0; in f2fs_find_target_dentry()
255 if (max_slots && max_len > *max_slots) in f2fs_find_target_dentry()
256 *max_slots = max_len; in f2fs_find_target_dentry()
/fs/orangefs/
A Dsuper.c336 int *max_len, in orangefs_encode_fh() argument
343 if (*max_len < len) { in orangefs_encode_fh()
345 *max_len = len; in orangefs_encode_fh()
371 *max_len = len; in orangefs_encode_fh()
/fs/smb/client/
A Dreaddir.c937 char *scratch_buf, unsigned int max_len, in cifs_filldir() argument
953 if (de.namelen > max_len) { in cifs_filldir()
973 (size_t)max_len), nlt, map_type); in cifs_filldir()
1044 unsigned int max_len; in cifs_readdir() local
1156 max_len = tcon->ses->server->ops->calc_smb_size( in cifs_readdir()
1158 end_of_smb = cifsFile->srch_inf.ntwrk_buf_start + max_len; in cifs_readdir()
1179 tmp_buf, max_len, cfid); in cifs_readdir()
A Dmisc.c958 int max_len; in parse_dfs_referrals() local
983 max_len = data_end - temp; in parse_dfs_referrals()
984 node->path_name = cifs_strndup_from_utf16(temp, max_len, in parse_dfs_referrals()
993 max_len = data_end - temp; in parse_dfs_referrals()
994 node->node_name = cifs_strndup_from_utf16(temp, max_len, in parse_dfs_referrals()
/fs/xfs/scrub/
A Dattr_repair.c521 xfs_extlen_t max_len, in xrep_xattr_find_buf() argument
527 .max_sectors = xrep_bufscan_max_sectors(mp, max_len), in xrep_xattr_find_buf()
571 xfs_extlen_t max_len, in xrep_xattr_recover_block() argument
578 error = xrep_xattr_find_buf(rx->sc->mp, fsbno, max_len, true, &bp); in xrep_xattr_recover_block()
1533 int max_len; in xrep_xattr_setup_scan() local
1550 max_len = xfs_attr_leaf_entsize_local_max(sc->mp->m_attr_geo->blksize); in xrep_xattr_setup_scan()
1551 error = xchk_setup_xattr_buf(rx->sc, max_len); in xrep_xattr_setup_scan()
/fs/
A Dpidfs.c740 static int pidfs_encode_fh(struct inode *inode, u32 *fh, int *max_len, in pidfs_encode_fh() argument
745 if (*max_len < 2) { in pidfs_encode_fh()
746 *max_len = 2; in pidfs_encode_fh()
750 *max_len = 2; in pidfs_encode_fh()
/fs/overlayfs/
A Dexport.c270 static int ovl_encode_fh(struct inode *inode, u32 *fid, int *max_len, in ovl_encode_fh() argument
274 int bytes, buflen = *max_len << 2; in ovl_encode_fh()
284 *max_len = bytes >> 2; in ovl_encode_fh()
/fs/ocfs2/cluster/
A Dtcp.h87 int o2net_register_handler(u32 msg_type, u32 key, u32 max_len,

Completed in 791 milliseconds

12