Home
last modified time | relevance | path

Searched refs:rlen (Results 1 – 19 of 19) sorted by relevance

/fs/xfs/libxfs/
Dxfs_alloc.c439 xfs_extlen_t rlen; in xfs_alloc_fix_len() local
442 rlen = args->len; in xfs_alloc_fix_len()
443 ASSERT(rlen >= args->minlen); in xfs_alloc_fix_len()
444 ASSERT(rlen <= args->maxlen); in xfs_alloc_fix_len()
445 if (args->prod <= 1 || rlen < args->mod || rlen == args->maxlen || in xfs_alloc_fix_len()
446 (args->mod == 0 && rlen < args->prod)) in xfs_alloc_fix_len()
448 k = rlen % args->prod; in xfs_alloc_fix_len()
452 rlen = rlen - (k - args->mod); in xfs_alloc_fix_len()
454 rlen = rlen - args->prod + (args->mod - k); in xfs_alloc_fix_len()
456 if ((int)rlen < (int)args->minlen) in xfs_alloc_fix_len()
[all …]
Dxfs_bmap.h194 xfs_fileoff_t bno, xfs_filblks_t *rlen, uint32_t flags,
Dxfs_bmap.c5251 xfs_filblks_t *rlen, /* i/o: amount remaining */ in __xfs_bunmapi() argument
5269 xfs_filblks_t len = *rlen; /* length to unmap in file */ in __xfs_bunmapi()
5293 *rlen = 0; in __xfs_bunmapi()
5301 *rlen = 0; in __xfs_bunmapi()
5511 *rlen = 0; in __xfs_bunmapi()
5513 *rlen = end - start + 1; in __xfs_bunmapi()
/fs/ext4/
Ddir.c85 const int rlen = ext4_rec_len_from_disk(de->rec_len, in __ext4_check_dir_entry() local
87 const int next_offset = ((char *) de - buf) + rlen; in __ext4_check_dir_entry()
91 if (unlikely(rlen < ext4_dir_rec_len(1, fake ? NULL : dir))) in __ext4_check_dir_entry()
93 else if (unlikely(rlen % 4 != 0)) in __ext4_check_dir_entry()
95 else if (unlikely(rlen < ext4_dir_rec_len(de->name_len, in __ext4_check_dir_entry()
115 rlen, size, fake); in __ext4_check_dir_entry()
121 rlen, size, fake); in __ext4_check_dir_entry()
647 int rlen; in ext4_check_all_de() local
657 rlen = ext4_rec_len_from_disk(de->rec_len, buf_size); in ext4_check_all_de()
658 de = (struct ext4_dir_entry_2 *)((char *)de + rlen); in ext4_check_all_de()
[all …]
Dnamei.c451 unsigned int rlen = ext4_rec_len_from_disk(dirent->rec_len, blocksize); in get_dx_countlimit() local
453 if (rlen == blocksize) in get_dx_countlimit()
455 else if (rlen == 12) { in get_dx_countlimit()
2105 int nlen, rlen; in ext4_find_dest_de() local
2118 rlen = ext4_rec_len_from_disk(de->rec_len, buf_size); in ext4_find_dest_de()
2119 if ((de->inode ? rlen - nlen : rlen) >= reclen) in ext4_find_dest_de()
2121 de = (struct ext4_dir_entry_2 *)((char *)de + rlen); in ext4_find_dest_de()
2122 offset += rlen; in ext4_find_dest_de()
2138 int nlen, rlen; in ext4_insert_dentry() local
2141 rlen = ext4_rec_len_from_disk(de->rec_len, buf_size); in ext4_insert_dentry()
[all …]
/fs/ubifs/
Dio.c1023 int err, rlen, overlap; in ubifs_read_node_wbuf() local
1041 rlen = wbuf->offs - offs; in ubifs_read_node_wbuf()
1042 if (rlen < 0) in ubifs_read_node_wbuf()
1043 rlen = 0; in ubifs_read_node_wbuf()
1046 memcpy(buf + rlen, wbuf->buf + offs + rlen - wbuf->offs, len - rlen); in ubifs_read_node_wbuf()
1049 if (rlen > 0) { in ubifs_read_node_wbuf()
1051 err = ubifs_leb_read(c, lnum, buf, offs, rlen, 0); in ubifs_read_node_wbuf()
1068 rlen = le32_to_cpu(ch->len); in ubifs_read_node_wbuf()
1069 if (rlen != len) { in ubifs_read_node_wbuf()
1070 ubifs_err(c, "bad node length %d, expected %d", rlen, len); in ubifs_read_node_wbuf()
Dtnc.c1688 int rlen, overlap; in read_wbuf() local
1704 rlen = wbuf->offs - offs; in read_wbuf()
1705 if (rlen < 0) in read_wbuf()
1706 rlen = 0; in read_wbuf()
1709 memcpy(buf + rlen, wbuf->buf + offs + rlen - wbuf->offs, len - rlen); in read_wbuf()
1712 if (rlen > 0) in read_wbuf()
1714 return ubifs_leb_read(c, lnum, buf, offs, rlen, 0); in read_wbuf()
/fs/f2fs/
Dcompress.c198 ret = lzo1x_1_compress(cc->rbuf, cc->rlen, cc->cbuf->cdata, in lzo_compress_pages()
213 dic->rbuf, &dic->rlen); in lzo_decompress_pages()
220 if (dic->rlen != PAGE_SIZE << dic->log_cluster_size) { in lzo_decompress_pages()
223 dic->rlen, PAGE_SIZE << dic->log_cluster_size); in lzo_decompress_pages()
256 cc->clen = cc->rlen - PAGE_SIZE - COMPRESS_HEADER_SIZE; in lz4_init_compress_ctx()
272 len = LZ4_compress_default(cc->rbuf, cc->cbuf->cdata, cc->rlen, in lz4_compress_pages()
276 len = LZ4_compress_HC(cc->rbuf, cc->cbuf->cdata, cc->rlen, in lz4_compress_pages()
293 dic->clen, dic->rlen); in lz4_decompress_pages()
340 params = zstd_get_params(level, cc->rlen); in zstd_init_compress_ctx()
359 cc->clen = cc->rlen - PAGE_SIZE - COMPRESS_HEADER_SIZE; in zstd_init_compress_ctx()
[all …]
Df2fs.h1479 size_t rlen; /* valid data length in rbuf */ member
1508 size_t rlen; /* valid data length in rbuf */ member
Ddata.c3010 .rlen = PAGE_SIZE * F2FS_I(inode)->i_cluster_size, in f2fs_write_cache_pages()
/fs/romfs/
Dstorage.c26 size_t rlen; in romfs_mtd_read() local
29 ret = ROMFS_MTD_READ(sb, pos, buflen, &rlen, buf); in romfs_mtd_read()
30 return (ret < 0 || rlen != buflen) ? -EIO : 0; in romfs_mtd_read()
/fs/xfs/
Dxfs_log.c2317 uint32_t rlen; in xlog_write_partial() local
2346 rlen = min_t(uint32_t, reg->i_len, iclog->ic_size - *log_offset); in xlog_write_partial()
2349 ophdr->oh_len = cpu_to_be32(rlen - sizeof(struct xlog_op_header)); in xlog_write_partial()
2350 if (rlen != reg->i_len) in xlog_write_partial()
2354 rlen, len, record_cnt, data_cnt); in xlog_write_partial()
2357 if (rlen == reg->i_len) in xlog_write_partial()
2410 reg_offset += rlen; in xlog_write_partial()
2411 rlen = reg->i_len - reg_offset; in xlog_write_partial()
2412 if (rlen <= iclog->ic_size - *log_offset) in xlog_write_partial()
2417 rlen = min_t(uint32_t, rlen, iclog->ic_size - *log_offset); in xlog_write_partial()
[all …]
Dxfs_bmap_util.c1382 xfs_filblks_t rlen; in xfs_swap_extent_rmap() local
1431 uirec.br_blockcount = rlen = min_t(xfs_filblks_t, in xfs_swap_extent_rmap()
1475 tirec.br_startoff += rlen; in xfs_swap_extent_rmap()
1478 tirec.br_startblock += rlen; in xfs_swap_extent_rmap()
1479 tirec.br_blockcount -= rlen; in xfs_swap_extent_rmap()
Dxfs_reflink.c1580 xfs_extlen_t rlen; in xfs_reflink_inode_has_shared_extents() local
1590 &rbno, &rlen, false); in xfs_reflink_inode_has_shared_extents()
/fs/ocfs2/
Dreservations.c404 unsigned int *rlen) in ocfs2_resmap_find_free_bits() argument
447 *rlen = best_len; in ocfs2_resmap_find_free_bits()
452 return *rlen; in ocfs2_resmap_find_free_bits()
Ddir.c305 const int rlen = le16_to_cpu(de->rec_len); in ocfs2_check_dir_entry() local
306 const unsigned long next_offset = ((char *) de - buf) + rlen; in ocfs2_check_dir_entry()
308 if (unlikely(rlen < OCFS2_DIR_REC_LEN(1))) in ocfs2_check_dir_entry()
310 else if (unlikely(rlen % 4 != 0)) in ocfs2_check_dir_entry()
312 else if (unlikely(rlen < OCFS2_DIR_REC_LEN(de->name_len))) in ocfs2_check_dir_entry()
324 offset, (unsigned long long)le64_to_cpu(de->inode), rlen, in ocfs2_check_dir_entry()
/fs/nfsd/
Dnfs4proc.c2913 u32 rlen = min(op->u.read.rd_length, nfsd4_max_payload(rqstp)); in nfsd4_read_rsize() local
2915 return (op_encode_hdr_size + 2 + XDR_QUADLEN(rlen)) * sizeof(__be32); in nfsd4_read_rsize()
2921 u32 rlen = min(op->u.read.rd_length, nfsd4_max_payload(rqstp)); in nfsd4_read_plus_rsize() local
2929 return (op_encode_hdr_size + 2 + seg_len + XDR_QUADLEN(rlen)) * sizeof(__be32); in nfsd4_read_plus_rsize()
2935 u32 rlen = min(op->u.readdir.rd_maxcount, nfsd4_max_payload(rqstp)); in nfsd4_readdir_rsize() local
2938 XDR_QUADLEN(rlen)) * sizeof(__be32); in nfsd4_readdir_rsize()
3074 u32 rlen = min(op->u.getdeviceinfo.gd_maxcount, nfsd4_max_payload(rqstp)); in nfsd4_getdeviceinfo_rsize() local
3078 XDR_QUADLEN(rlen) + in nfsd4_getdeviceinfo_rsize()
3124 u32 rlen = min_t(u32, XATTR_SIZE_MAX, nfsd4_max_payload(rqstp)); in nfsd4_getxattr_rsize() local
3126 return (op_encode_hdr_size + 1 + XDR_QUADLEN(rlen)) * sizeof(__be32); in nfsd4_getxattr_rsize()
[all …]
/fs/nfs/
Dpnfs_nfs.c1093 ssize_t nlen, rlen; in nfs4_decode_mp_ds_addr() local
1109 rlen = xdr_stream_decode_string_dup(xdr, &buf, INET6_ADDRSTRLEN + in nfs4_decode_mp_ds_addr()
1111 if (unlikely(rlen < 0)) in nfs4_decode_mp_ds_addr()
/fs/gfs2/
Drgrp.c2360 unsigned int rlen; in gfs2_adjust_reservation() local
2363 rlen = min(rs->rs_requested, len); in gfs2_adjust_reservation()
2364 rs->rs_requested -= rlen; in gfs2_adjust_reservation()
2365 rgd->rd_requested -= rlen; in gfs2_adjust_reservation()