Home
last modified time | relevance | path

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

12

/fs/nfs/
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 || IS_AUTOMOUNT(inode)) { 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/exportfs/
Dexpfs.c359 int *max_len, struct inode *parent) in export_encode_fh() argument
361 int len = *max_len; in export_encode_fh()
365 *max_len = 4; in export_encode_fh()
368 *max_len = 2; in export_encode_fh()
381 *max_len = len; in export_encode_fh()
386 int *max_len, struct inode *parent) in exportfs_encode_inode_fh() argument
391 return nop->encode_fh(inode, fid->raw, max_len, parent); in exportfs_encode_inode_fh()
393 return export_encode_fh(inode, fid, max_len, parent); in exportfs_encode_inode_fh()
397 int exportfs_encode_fh(struct dentry *dentry, struct fid *fid, int *max_len, in exportfs_encode_fh() argument
413 error = exportfs_encode_inode_fh(inode, fid, max_len, parent); in exportfs_encode_fh()
/fs/ceph/
Dexport.c35 static int ceph_encode_snapfh(struct inode *inode, u32 *rawfh, int *max_len, in ceph_encode_snapfh() argument
45 if (*max_len < snap_handle_length) { in ceph_encode_snapfh()
46 *max_len = snap_handle_length; in ceph_encode_snapfh()
78 *max_len = snap_handle_length; in ceph_encode_snapfh()
85 static int ceph_encode_fh(struct inode *inode, u32 *rawfh, int *max_len, in ceph_encode_fh() argument
95 return ceph_encode_snapfh(inode, rawfh, max_len, parent_inode); in ceph_encode_fh()
97 if (parent_inode && (*max_len < connected_handle_length)) { in ceph_encode_fh()
98 *max_len = connected_handle_length; in ceph_encode_fh()
100 } else if (*max_len < handle_length) { in ceph_encode_fh()
101 *max_len = handle_length; in ceph_encode_fh()
[all …]
/fs/isofs/
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/ocfs2/
Dexport.c194 static int ocfs2_encode_fh(struct inode *inode, u32 *fh_in, int *max_len, in ocfs2_encode_fh() argument
197 int len = *max_len; in ocfs2_encode_fh()
211 *max_len = 6; in ocfs2_encode_fh()
215 *max_len = 3; in ocfs2_encode_fh()
245 *max_len = len; in ocfs2_encode_fh()
/fs/xfs/
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()
Dxfs_bmap_util.c371 int64_t bmv_end, max_len; in xfs_getbmap() local
408 max_len = 1LL << 32; in xfs_getbmap()
417 max_len = mp->m_super->s_maxbytes; in xfs_getbmap()
419 max_len = XFS_ISIZE(ip); in xfs_getbmap()
444 max_len = mp->m_super->s_maxbytes; in xfs_getbmap()
446 max_len = XFS_ISIZE(ip); in xfs_getbmap()
465 max_len = XFS_FSB_TO_BB(mp, XFS_B_TO_FSB(mp, max_len)); in xfs_getbmap()
466 bmv->bmv_length = max(0LL, max_len - bmv->bmv_offset); in xfs_getbmap()
/fs/btrfs/
Dexport.c17 static int btrfs_encode_fh(struct inode *inode, u32 *fh, int *max_len, in btrfs_encode_fh() argument
21 int len = *max_len; in btrfs_encode_fh()
25 *max_len = BTRFS_FID_SIZE_CONNECTABLE; in btrfs_encode_fh()
28 *max_len = BTRFS_FID_SIZE_NON_CONNECTABLE; in btrfs_encode_fh()
56 *max_len = len; in btrfs_encode_fh()
/fs/kernfs/
Dmount.c56 static int kernfs_encode_fh(struct inode *inode, __u32 *fh, int *max_len, in kernfs_encode_fh() argument
61 if (*max_len < 2) { in kernfs_encode_fh()
62 *max_len = 2; in kernfs_encode_fh()
66 *max_len = 2; in kernfs_encode_fh()
/fs/crypto/
Dhooks.c194 unsigned int len, unsigned int max_len, in fscrypt_prepare_symlink() argument
209 if (disk_link->len > max_len) in fscrypt_prepare_symlink()
228 max_len - sizeof(struct fscrypt_symlink_data), in fscrypt_prepare_symlink()
Dfname.c237 u32 orig_len, u32 max_len, in fscrypt_fname_encrypted_size() argument
244 if (orig_len > max_len) in fscrypt_fname_encrypted_size()
248 *encrypted_len_ret = min(encrypted_len, max_len); in fscrypt_fname_encrypted_size()
/fs/cifs/
Dreaddir.c838 char *scratch_buf, unsigned int max_len) in cifs_filldir() argument
854 if (de.namelen > max_len) { in cifs_filldir()
874 (size_t)max_len), nlt, map_type); in cifs_filldir()
943 unsigned int max_len; in cifs_readdir() local
999 max_len = tcon->ses->server->ops->calc_smb_size( in cifs_readdir()
1002 end_of_smb = cifsFile->srch_inf.ntwrk_buf_start + max_len; in cifs_readdir()
1023 tmp_buf, max_len); in cifs_readdir()
Dmisc.c728 int max_len; in parse_dfs_referrals() local
753 max_len = data_end - temp; in parse_dfs_referrals()
754 node->path_name = cifs_strndup_from_utf16(temp, max_len, in parse_dfs_referrals()
763 max_len = data_end - temp; in parse_dfs_referrals()
764 node->node_name = cifs_strndup_from_utf16(temp, max_len, in parse_dfs_referrals()
Dsmb2misc.c309 const int max_len = 128 * 1024; in smb2_get_data_area_len() local
383 *len < 0 || *len > max_len)) { in smb2_get_data_area_len()
/fs/ubifs/
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()
Dtnc_misc.c344 if (c->ranges[type].max_len == 0) { in read_znode()
353 zbr->len > c->ranges[type].max_len) { in read_znode()
358 c->ranges[type].max_len); in read_znode()
Dsuper.c596 c->ranges[UBIFS_AUTH_NODE].max_len = UBIFS_AUTH_NODE_SZ + in init_constants_early()
599 c->ranges[UBIFS_SIG_NODE].max_len = c->leb_size - UBIFS_SB_NODE_SZ; in init_constants_early()
602 c->ranges[UBIFS_INO_NODE].max_len = UBIFS_MAX_INO_NODE_SZ; in init_constants_early()
605 c->ranges[UBIFS_ORPH_NODE].max_len = c->leb_size; in init_constants_early()
607 c->ranges[UBIFS_DENT_NODE].max_len = UBIFS_MAX_DENT_NODE_SZ; in init_constants_early()
609 c->ranges[UBIFS_XENT_NODE].max_len = UBIFS_MAX_XENT_NODE_SZ; in init_constants_early()
611 c->ranges[UBIFS_DATA_NODE].max_len = UBIFS_MAX_DATA_NODE_SZ; in init_constants_early()
621 c->ranges[UBIFS_IDX_NODE].max_len = INT_MAX; in init_constants_early()
691 c->ranges[UBIFS_IDX_NODE].max_len = tmp; in init_constants_sb()
/fs/orangefs/
Dsuper.c347 int *max_len, in orangefs_encode_fh() argument
354 if (*max_len < len) { in orangefs_encode_fh()
356 *max_len = len; in orangefs_encode_fh()
382 *max_len = len; in orangefs_encode_fh()
/fs/f2fs/
Ddir.c290 int max_len = 0; in f2fs_find_target_dentry() local
298 max_len++; in f2fs_find_target_dentry()
319 if (max_slots && max_len > *max_slots) in f2fs_find_target_dentry()
320 *max_slots = max_len; in f2fs_find_target_dentry()
321 max_len = 0; in f2fs_find_target_dentry()
328 if (max_slots && max_len > *max_slots) in f2fs_find_target_dentry()
329 *max_slots = max_len; in f2fs_find_target_dentry()
Dcompress.c619 unsigned int max_len, new_nr_cpages; in f2fs_compress_pages() local
633 max_len = COMPRESS_HEADER_SIZE + cc->clen; in f2fs_compress_pages()
634 cc->nr_cpages = DIV_ROUND_UP(max_len, PAGE_SIZE); in f2fs_compress_pages()
666 max_len = PAGE_SIZE * (cc->cluster_size - 1) - COMPRESS_HEADER_SIZE; in f2fs_compress_pages()
668 if (cc->clen > max_len) { in f2fs_compress_pages()
/fs/overlayfs/
Dexport.c249 static int ovl_encode_fh(struct inode *inode, u32 *fid, int *max_len, in ovl_encode_fh() argument
253 int bytes, buflen = *max_len << 2; in ovl_encode_fh()
268 *max_len = bytes >> 2; in ovl_encode_fh()
/fs/ocfs2/cluster/
Dtcp.h89 int o2net_register_handler(u32 msg_type, u32 key, u32 max_len,
Dtcp.c798 int o2net_register_handler(u32 msg_type, u32 key, u32 max_len, in o2net_register_handler() argument
807 if (max_len > O2NET_MAX_PAYLOAD_BYTES) { in o2net_register_handler()
809 max_len); in o2net_register_handler()
837 nmh->nh_max_len = max_len; in o2net_register_handler()
/fs/gfs2/
Dbmap.c468 u64 max_len, gfs2_metadata_walker walker) in gfs2_walk_metadata() argument
482 max_len += mp->mp_list[hgt] * factor; in gfs2_walk_metadata()
496 if (len > max_len) in gfs2_walk_metadata()
497 ptrs = DIV_ROUND_UP_ULL(max_len, factor); in gfs2_walk_metadata()
510 if (len >= max_len) in gfs2_walk_metadata()
512 max_len -= len; in gfs2_walk_metadata()
/fs/fuse/
Dinode.c828 static int fuse_encode_fh(struct inode *inode, u32 *fh, int *max_len, in fuse_encode_fh() argument
835 if (*max_len < len) { in fuse_encode_fh()
836 *max_len = len; in fuse_encode_fh()
856 *max_len = len; in fuse_encode_fh()

12