Home
last modified time | relevance | path

Searched refs:nb (Results 1 – 14 of 14) 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.h155 #define xfs_trans_reserve_quota(tp, mp, ud, gd, pd, nb, ni, f) \ argument
156 xfs_trans_reserve_quota_bydquots(tp, mp, ud, gd, pd, nb, ni, \
/fs/jfs/
Djfs_dmap.c96 static int blkstol2(s64 nb);
322 int nb, rc; in dbFree() local
351 for (rem = nblocks; rem > 0; rem -= nb, blkno += nb) { in dbFree()
369 nb = min(rem, BPERDMAP - (blkno & (BPERDMAP - 1))); in dbFree()
372 if ((rc = dbFreeDmap(bmp, dp, blkno, nb))) { in dbFree()
1115 int dbitno, word, rembits, nb, nwords, wbitno, nw; in dbAllocNext() local
1160 for (rembits = nblocks; rembits > 0; rembits -= nb, dbitno += nb) { in dbAllocNext()
1165 nb = min(rembits, DBWORD - wbitno); in dbAllocNext()
1169 if (nb < DBWORD) { in dbAllocNext()
1172 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
513 nb = nblks = (max > nbperpage) ? max : nbperpage; in extBalloc()
515 nb = nblks = *nblocks; in extBalloc()
518 while ((rc = dbAlloc(ip, hint, nb, &daddr)) != 0) { in extBalloc()
526 nb = min(nblks, extRoundDown(nb)); in extBalloc()
529 if (nb < nbperpage) in extBalloc()
533 *nblocks = nb; in extBalloc()
623 static s64 extRoundDown(s64 nb) in extRoundDown() argument
629 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/sdcardfs/
Dsuper.c285 int sdcardfs_on_fscrypt_key_removed(struct notifier_block *nb, in sdcardfs_on_fscrypt_key_removed() argument
288 struct sdcardfs_sb_info *sbi = container_of(nb, struct sdcardfs_sb_info, in sdcardfs_on_fscrypt_key_removed()
Dsdcardfs.h155 extern int sdcardfs_on_fscrypt_key_removed(struct notifier_block *nb,
/fs/crypto/
Dkeyring.c745 int fscrypt_register_key_removal_notifier(struct notifier_block *nb) in fscrypt_register_key_removal_notifier() argument
748 nb); in fscrypt_register_key_removal_notifier()
752 int fscrypt_unregister_key_removal_notifier(struct notifier_block *nb) in fscrypt_unregister_key_removal_notifier() argument
755 nb); in fscrypt_unregister_key_removal_notifier()
/fs/
Dlocks.c2017 int lease_register_notifier(struct notifier_block *nb) in lease_register_notifier() argument
2019 return srcu_notifier_chain_register(&lease_notifier_chain, nb); in lease_register_notifier()
2023 void lease_unregister_notifier(struct notifier_block *nb) in lease_unregister_notifier() argument
2025 srcu_notifier_chain_unregister(&lease_notifier_chain, nb); in lease_unregister_notifier()
2040 int lease_register_notifier(struct notifier_block *nb) in lease_register_notifier() argument
2046 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.c521 nfsd_file_lease_notifier_call(struct notifier_block *nb, unsigned long arg, in nfsd_file_lease_notifier_call() argument
Dnfs4recover.c2135 rpc_pipefs_event(struct notifier_block *nb, unsigned long event, void *ptr) in rpc_pipefs_event() argument