Home
last modified time | relevance | path

Searched refs:nb (Results 1 – 13 of 13) sorted by relevance

/fs/xfs/
Dxfs_fsops.c35 xfs_rfsblock_t nb, nb_mod; in xfs_growfs_data_private() local
41 nb = in->newblocks; in xfs_growfs_data_private()
42 if (nb < mp->m_sb.sb_dblocks) in xfs_growfs_data_private()
44 if ((error = xfs_sb_validate_fsb_count(&mp->m_sb, nb))) in xfs_growfs_data_private()
47 XFS_FSB_TO_BB(mp, nb) - XFS_FSS_TO_BB(mp, 1), in xfs_growfs_data_private()
53 new = nb; /* use new as a temporary here */ in xfs_growfs_data_private()
58 nb = (xfs_rfsblock_t)nagcount * mp->m_sb.sb_agblocks; in xfs_growfs_data_private()
59 if (nb < mp->m_sb.sb_dblocks) in xfs_growfs_data_private()
62 new = nb - mp->m_sb.sb_dblocks; in xfs_growfs_data_private()
95 id.agsize = nb - in xfs_growfs_data_private()
[all …]
Dxfs_quota.h156 #define xfs_trans_reserve_quota(tp, mp, ud, gd, pd, nb, ni, f) \ argument
157 xfs_trans_reserve_quota_bydquots(tp, mp, ud, gd, pd, nb, ni, \
/fs/vboxsf/
Dutils.c349 int path_len, out_len, nb; in vboxsf_path_from_dentry() local
376 nb = sbi->nls->char2uni(path, path_len, &uni); in vboxsf_path_from_dentry()
377 if (nb < 0) { in vboxsf_path_from_dentry()
382 path += nb; in vboxsf_path_from_dentry()
383 path_len -= nb; in vboxsf_path_from_dentry()
385 nb = utf32_to_utf8(uni, out, out_len); in vboxsf_path_from_dentry()
386 if (nb < 0) { in vboxsf_path_from_dentry()
391 out += nb; in vboxsf_path_from_dentry()
392 out_len -= nb; in vboxsf_path_from_dentry()
435 int nb; in vboxsf_nlscpy() local
[all …]
/fs/jfs/
Djfs_dmap.c96 static int blkstol2(s64 nb);
359 int nb, rc; in dbFree() local
388 for (rem = nblocks; rem > 0; rem -= nb, blkno += nb) { in dbFree()
406 nb = min(rem, BPERDMAP - (blkno & (BPERDMAP - 1))); in dbFree()
409 if ((rc = dbFreeDmap(bmp, dp, blkno, nb))) { in dbFree()
1153 int dbitno, word, rembits, nb, nwords, wbitno, nw; in dbAllocNext() local
1198 for (rembits = nblocks; rembits > 0; rembits -= nb, dbitno += nb) { in dbAllocNext()
1203 nb = min(rembits, DBWORD - wbitno); in dbAllocNext()
1207 if (nb < DBWORD) { in dbAllocNext()
1210 mask = (ONES << (DBWORD - nb) >> wbitno); in dbAllocNext()
[all …]
Djfs_extent.c22 static s64 extRoundDown(s64 nb);
500 s64 nb, nblks, daddr, max; in extBalloc() local
518 nb = nblks = (max > nbperpage) ? max : nbperpage; in extBalloc()
520 nb = nblks = *nblocks; in extBalloc()
523 while ((rc = dbAlloc(ip, hint, nb, &daddr)) != 0) { in extBalloc()
531 nb = min(nblks, extRoundDown(nb)); in extBalloc()
534 if (nb < nbperpage) in extBalloc()
538 *nblocks = nb; in extBalloc()
628 static s64 extRoundDown(s64 nb) in extRoundDown() argument
634 if (m & nb) in extRoundDown()
[all …]
Dxattr.c211 s32 nbytes, nb; in ea_write() local
251 nb = min(PSIZE, nbytes); in ea_write()
253 ((((nb + sb->s_blocksize - 1)) >> sb->s_blocksize_bits)) in ea_write()
261 memcpy(mp->data, cp, nb); in ea_write()
284 nbytes -= nb; in ea_write()
360 int nbytes, nb; in ea_read() local
391 nb = min(PSIZE, nbytes); in ea_read()
393 ((((nb + sb->s_blocksize - 1)) >> sb->s_blocksize_bits)) in ea_read()
399 memcpy(cp, mp->data, nb); in ea_read()
403 nbytes -= nb; in ea_read()
Djfs_xtree.c2563 int nb, npages, nblks; in xtRelocate() local
2672 for (nbrd = 0; nbrd < nbytes; nbrd += nb, in xtRelocate()
2673 offset += nb, pno++, npages--) { in xtRelocate()
2675 nb = min(nbytes - nbrd, CM_BSIZE); in xtRelocate()
2685 nblks = nb >> JFS_IP(ip->i_sb)->l2bsize; in xtRelocate()
/fs/exfat/
Ddir.c193 static void exfat_init_namebuf(struct exfat_dentry_namebuf *nb) in exfat_init_namebuf() argument
195 nb->lfn = NULL; in exfat_init_namebuf()
196 nb->lfnbuf_len = 0; in exfat_init_namebuf()
199 static int exfat_alloc_namebuf(struct exfat_dentry_namebuf *nb) in exfat_alloc_namebuf() argument
201 nb->lfn = __getname(); in exfat_alloc_namebuf()
202 if (!nb->lfn) in exfat_alloc_namebuf()
204 nb->lfnbuf_len = MAX_VFSNAME_BUF_SIZE; in exfat_alloc_namebuf()
208 static void exfat_free_namebuf(struct exfat_dentry_namebuf *nb) in exfat_free_namebuf() argument
210 if (!nb->lfn) in exfat_free_namebuf()
213 __putname(nb->lfn); in exfat_free_namebuf()
[all …]
/fs/
Dlocks.c2047 int lease_register_notifier(struct notifier_block *nb) in lease_register_notifier() argument
2049 return srcu_notifier_chain_register(&lease_notifier_chain, nb); in lease_register_notifier()
2053 void lease_unregister_notifier(struct notifier_block *nb) in lease_unregister_notifier() argument
2055 srcu_notifier_chain_unregister(&lease_notifier_chain, nb); in lease_unregister_notifier()
2070 int lease_register_notifier(struct notifier_block *nb) in lease_register_notifier() argument
2076 void lease_unregister_notifier(struct notifier_block *nb) in lease_unregister_notifier() argument
/fs/nfs/blocklayout/
Drpc_pipefs.c165 static int rpc_pipefs_event(struct notifier_block *nb, unsigned long event, in rpc_pipefs_event() argument
/fs/nfs/
Ddns_resolve.c425 static int rpc_pipefs_event(struct notifier_block *nb, unsigned long event, in rpc_pipefs_event() argument
/fs/nfsd/
Dfilecache.c584 nfsd_file_lease_notifier_call(struct notifier_block *nb, unsigned long arg, in nfsd_file_lease_notifier_call() argument
Dnfs4recover.c2116 rpc_pipefs_event(struct notifier_block *nb, unsigned long event, void *ptr) in rpc_pipefs_event() argument