Home
last modified time | relevance | path

Searched refs:blen (Results 1 – 18 of 18) sorted by relevance

/fs/ubifs/
Dtnc_commit.c417 int wlen, blen, err; in layout_in_empty_space() local
505 blen = buf_len; in layout_in_empty_space()
507 blen = ALIGN(wlen, c->min_io_size); in layout_in_empty_space()
510 buf_offs += blen; in layout_in_empty_space()
514 c->leb_size - buf_offs, blen - used, in layout_in_empty_space()
520 used -= blen; in layout_in_empty_space()
527 blen - used, 0, 0); in layout_in_empty_space()
811 int avail, wlen, err, lnum_pos = 0, blen, nxt_offs; in write_index() local
944 blen = buf_len; in write_index()
947 blen = ALIGN(wlen, c->min_io_size); in write_index()
[all …]
Dfile.c899 int err = 0, i, blen; in do_writepage() local
920 blen = min_t(int, len, UBIFS_BLOCK_SIZE); in do_writepage()
922 err = ubifs_jnl_write_data(c, inode, &key, addr, blen); in do_writepage()
928 addr += blen; in do_writepage()
929 len -= blen; in do_writepage()
/fs/gfs2/
Dxattr.c237 unsigned int blen = 0; in ea_dealloc_unstuffed() local
282 if (bstart + blen == bn) in ea_dealloc_unstuffed()
283 blen++; in ea_dealloc_unstuffed()
286 gfs2_free_meta(ip, bstart, blen); in ea_dealloc_unstuffed()
288 blen = 1; in ea_dealloc_unstuffed()
295 gfs2_free_meta(ip, bstart, blen); in ea_dealloc_unstuffed()
1282 unsigned int blen = 0; in ea_dealloc_indirect() local
1312 if (bstart + blen == bn) in ea_dealloc_indirect()
1313 blen++; in ea_dealloc_indirect()
1318 blen = 1; in ea_dealloc_indirect()
[all …]
Dbmap.c724 u32 blen, btotal; in do_strip() local
755 blen = 0; in do_strip()
763 if (bstart + blen == bn) in do_strip()
764 blen++; in do_strip()
770 blen = 1; in do_strip()
806 blen = 0; in do_strip()
815 if (bstart + blen == bn) in do_strip()
816 blen++; in do_strip()
819 __gfs2_free_blocks(ip, bstart, blen, metadata); in do_strip()
820 btotal += blen; in do_strip()
[all …]
Drgrp.h55 extern void __gfs2_free_blocks(struct gfs2_inode *ip, u64 bstart, u32 blen, int meta);
56 extern void gfs2_free_meta(struct gfs2_inode *ip, u64 bstart, u32 blen);
Dmeta_io.c375 void gfs2_meta_wipe(struct gfs2_inode *ip, u64 bstart, u32 blen) in gfs2_meta_wipe() argument
380 while (blen) { in gfs2_meta_wipe()
392 blen--; in gfs2_meta_wipe()
Drgrp.c2170 u32 blen, unsigned char new_state) in rgblk_free() argument
2183 while (blen--) { in rgblk_free()
2412 void __gfs2_free_blocks(struct gfs2_inode *ip, u64 bstart, u32 blen, int meta) in __gfs2_free_blocks() argument
2417 rgd = rgblk_free(sdp, bstart, blen, GFS2_BLKST_FREE); in __gfs2_free_blocks()
2420 trace_gfs2_block_alloc(ip, rgd, bstart, blen, GFS2_BLKST_FREE); in __gfs2_free_blocks()
2421 rgd->rd_free += blen; in __gfs2_free_blocks()
2429 gfs2_meta_wipe(ip, bstart, blen); in __gfs2_free_blocks()
2440 void gfs2_free_meta(struct gfs2_inode *ip, u64 bstart, u32 blen) in gfs2_free_meta() argument
2444 __gfs2_free_blocks(ip, bstart, blen, 1); in gfs2_free_meta()
2445 gfs2_statfs_change(sdp, 0, +blen, 0); in gfs2_free_meta()
[all …]
Dmeta_io.h66 extern void gfs2_meta_wipe(struct gfs2_inode *ip, u64 bstart, u32 blen);
/fs/nfsd/
Dnfs4idmap.c126 int *blen) in idtoname_request() argument
131 qword_add(bpp, blen, ent->authname); in idtoname_request()
133 qword_add(bpp, blen, ent->type == IDMAP_TYPE_GROUP ? "group" : "user"); in idtoname_request()
134 qword_add(bpp, blen, idstr); in idtoname_request()
299 int *blen) in nametoid_request() argument
303 qword_add(bpp, blen, ent->authname); in nametoid_request()
304 qword_add(bpp, blen, ent->type == IDMAP_TYPE_GROUP ? "group" : "user"); in nametoid_request()
305 qword_add(bpp, blen, ent->name); in nametoid_request()
Dexport.c53 char **bpp, int *blen) in expkey_request() argument
59 qword_add(bpp, blen, ek->ek_client->name); in expkey_request()
61 qword_add(bpp, blen, type); in expkey_request()
62 qword_addhex(bpp, blen, (char*)ek->ek_fsid, key_len(ek->ek_fsidtype)); in expkey_request()
321 char **bpp, int *blen) in svc_export_request() argument
327 qword_add(bpp, blen, exp->ex_client->name); in svc_export_request()
328 pth = d_path(&exp->ex_path, *bpp, *blen); in svc_export_request()
334 qword_add(bpp, blen, pth); in svc_export_request()
/fs/fat/
Dnamei_vfat.c156 unsigned int alen, blen; in vfat_cmpi() local
160 blen = __vfat_striptail_len(len, str); in vfat_cmpi()
161 if (alen == blen) { in vfat_cmpi()
174 unsigned int alen, blen; in vfat_cmp() local
178 blen = __vfat_striptail_len(len, str); in vfat_cmp()
179 if (alen == blen) { in vfat_cmp()
/fs/xfs/
Dxfs_reflink.c1412 loff_t blen; in xfs_reflink_remap_range() local
1489 blen = ALIGN(isize, bs) - pos_in; in xfs_reflink_remap_range()
1491 blen = len; in xfs_reflink_remap_range()
1494 if (!IS_ALIGNED(pos_in, bs) || !IS_ALIGNED(pos_in + blen, bs) || in xfs_reflink_remap_range()
1495 !IS_ALIGNED(pos_out, bs) || !IS_ALIGNED(pos_out + blen, bs)) in xfs_reflink_remap_range()
1500 if (pos_out + blen > pos_in && pos_out < pos_in + blen) in xfs_reflink_remap_range()
/fs/isofs/
Dinode.c205 int alen, blen; in isofs_dentry_cmp_common() local
209 blen = len; in isofs_dentry_cmp_common()
213 while (blen && str[blen-1] == '.') in isofs_dentry_cmp_common()
214 blen--; in isofs_dentry_cmp_common()
216 if (alen == blen) { in isofs_dentry_cmp_common()
/fs/xfs/libxfs/
Dxfs_alloc.c1027 xfs_extlen_t blen=0; in xfs_alloc_ag_vextent_near() local
1057 for (j = 1, blen = 0, bdiff = 0; in xfs_alloc_ag_vextent_near()
1058 !error && j && (blen < args->maxlen || bdiff > 0); in xfs_alloc_ag_vextent_near()
1076 if (args->len < blen) in xfs_alloc_ag_vextent_near()
1082 (args->len > blen || ltdiff < bdiff)) { in xfs_alloc_ag_vextent_near()
1085 blen = args->len; in xfs_alloc_ag_vextent_near()
1093 if (blen == 0) in xfs_alloc_ag_vextent_near()
1103 args->len = blen; in xfs_alloc_ag_vextent_near()
1110 ASSERT(bnew + blen <= ltbno + ltlen); in xfs_alloc_ag_vextent_near()
1120 ltlen, bnew, blen, XFSA_FIXUP_CNT_OK))) in xfs_alloc_ag_vextent_near()
Dxfs_bmap.c3566 xfs_extlen_t *blen, in xfs_bmap_longest_free_extent() argument
3589 if (*blen < longest) in xfs_bmap_longest_free_extent()
3590 *blen = longest; in xfs_bmap_longest_free_extent()
3601 xfs_extlen_t *blen, in xfs_bmap_select_minlen() argument
3604 if (notinit || *blen < ap->minlen) { in xfs_bmap_select_minlen()
3610 } else if (*blen < args->maxlen) { in xfs_bmap_select_minlen()
3615 args->minlen = *blen; in xfs_bmap_select_minlen()
3629 xfs_extlen_t *blen) in xfs_bmap_btalloc_nullfb() argument
3643 while (*blen < args->maxlen) { in xfs_bmap_btalloc_nullfb()
3644 error = xfs_bmap_longest_free_extent(args->tp, ag, blen, in xfs_bmap_btalloc_nullfb()
[all …]
/fs/nfs/
Ddns_resolve.c132 char **bpp, int *blen) in nfs_dns_request() argument
136 qword_add(bpp, blen, key->hostname); in nfs_dns_request()
/fs/
Ddcache.c3110 int blen; in prepend_path() local
3119 blen = *buflen; in prepend_path()
3133 blen = *buflen; in prepend_path()
3150 error = prepend_name(&bptr, &blen, &dentry->d_name); in prepend_path()
3173 if (--blen < 0) in prepend_path()
3179 *buflen = blen; in prepend_path()
/fs/udf/
Dinode.c911 int blen = ((laarr[curr].extLength & UDF_EXTENT_LENGTH_MASK) + in udf_split_extents() local
915 if (blen == 1) in udf_split_extents()
917 else if (!offset || blen == offset + 1) { in udf_split_extents()
952 if (blen != offset + 1) { in udf_split_extents()
957 ((blen - (offset + 1)) << blocksize_bits); in udf_split_extents()