Home
last modified time | relevance | path

Searched refs:rem (Results 1 – 11 of 11) sorted by relevance

/fs/pstore/
Dram_core.c318 int rem; in persistent_ram_write() local
331 rem = prz->buffer_size - start; in persistent_ram_write()
332 if (unlikely(rem < c)) { in persistent_ram_write()
333 persistent_ram_update(prz, s, start, rem); in persistent_ram_write()
334 s += rem; in persistent_ram_write()
335 c -= rem; in persistent_ram_write()
348 int rem, ret = 0, c = count; in persistent_ram_write_user() local
362 rem = prz->buffer_size - start; in persistent_ram_write_user()
363 if (unlikely(rem < c)) { in persistent_ram_write_user()
364 ret = persistent_ram_update_user(prz, s, start, rem); in persistent_ram_write_user()
[all …]
/fs/proc/
Duptime.c15 u32 rem; in uptime_proc_show() local
23 idle.tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); in uptime_proc_show()
24 idle.tv_nsec = rem; in uptime_proc_show()
/fs/jfs/
Djfs_imap.c1325 int nwords, rem, i, agno, dn_numag; in diAlloc() local
1494 rem = diFindFree(inosmap, 0); in diAlloc()
1495 extno = (sword << L2EXTSPERSUM) + rem; in diAlloc()
1496 rem = diFindFree(le32_to_cpu(iagp->wmap[extno]), in diAlloc()
1498 if (rem >= INOSPEREXT) { in diAlloc()
1511 ino = (extno << L2INOSPEREXT) + rem; in diAlloc()
1541 rem = diFindFree(extsmap, 0); in diAlloc()
1542 extno = (sword << L2EXTSPERSUM) + rem; in diAlloc()
1769 int iagno, ino, rc, rem, extno, sword; in diAllocIno() local
1818 rem = diFindFree(le32_to_cpu(iagp->inosmap[sword]), 0); in diAllocIno()
[all …]
Djfs_dmap.c360 s64 lblkno, rem; 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()
455 s64 lblkno, rem, lastlblkno; in dbUpdatePMap() local
482 for (rem = nblocks; rem > 0; rem -= nblks, blkno += nblks) { in dbUpdatePMap()
504 nblks = min(rem, (s64)BPERDMAP - dbitno); in dbUpdatePMap()
3252 s64 lblkno, rem; in dbAllocBottomUp() local
3265 for (rem = nblocks; rem > 0; rem -= nb, blkno += nb) { in dbAllocBottomUp()
3283 nb = min(rem, BPERDMAP - (blkno & (BPERDMAP - 1))); in dbAllocBottomUp()
/fs/affs/
Damigaffs.c376 s32 rem; in affs_secs_to_datestamp() local
381 days = div_s64_rem(secs, 86400, &rem); in affs_secs_to_datestamp()
382 minute = rem / 60; in affs_secs_to_datestamp()
383 rem -= minute * 60; in affs_secs_to_datestamp()
387 ds->ticks = cpu_to_be32(rem * 50); in affs_secs_to_datestamp()
/fs/overlayfs/
Dnamei.c284 size_t rem = d->name.len - 1; in ovl_lookup_layer() local
293 const char *s = d->name.name + d->name.len - rem; in ovl_lookup_layer()
303 d->name.len - rem, next, &base); in ovl_lookup_layer()
311 rem -= thislen + 1; in ovl_lookup_layer()
313 if (WARN_ON(rem >= d->name.len)) in ovl_lookup_layer()
/fs/jffs2/
Dreadinode.c948 int rem = to_read % c->wbuf_pagesize; in read_more() local
950 if (rem) in read_more()
951 to_read += c->wbuf_pagesize - rem; in read_more()
1026 int end, rem; in jffs2_get_inode_nodes() local
1036 rem = end % c->wbuf_pagesize; in jffs2_get_inode_nodes()
1037 if (rem) in jffs2_get_inode_nodes()
1038 end += c->wbuf_pagesize - rem; in jffs2_get_inode_nodes()
/fs/fuse/
Ddev.c1986 size_t rem; in fuse_dev_splice_write() local
2003 rem = 0; in fuse_dev_splice_write()
2004 for (idx = 0; idx < pipe->nrbufs && rem < len; idx++) in fuse_dev_splice_write()
2005 rem += pipe->bufs[(pipe->curbuf + idx) & (pipe->buffers - 1)].len; in fuse_dev_splice_write()
2008 if (rem < len) in fuse_dev_splice_write()
2011 rem = len; in fuse_dev_splice_write()
2012 while (rem) { in fuse_dev_splice_write()
2021 if (rem >= ibuf->len) { in fuse_dev_splice_write()
2032 obuf->len = rem; in fuse_dev_splice_write()
2037 rem -= obuf->len; in fuse_dev_splice_write()
/fs/xfs/libxfs/
Dxfs_sb.c224 uint32_t rem; in xfs_validate_sb_common() local
285 agcount = div_u64_rem(sbp->sb_dblocks, sbp->sb_agblocks, &rem); in xfs_validate_sb_common()
286 if (rem) in xfs_validate_sb_common()
/fs/nfs/filelayout/
Dfilelayout.c59 u32 rem; in filelayout_get_dense_offset() local
63 div_u64_rem(offset, flseg->stripe_unit, &rem); in filelayout_get_dense_offset()
65 return stripe_no * flseg->stripe_unit + rem; in filelayout_get_dense_offset()
/fs/f2fs/
Dgc.c1567 __u32 rem; in f2fs_resize_fs() local
1583 div_u64_rem(block_count, BLKS_PER_SEC(sbi), &rem); in f2fs_resize_fs()
1584 if (rem) in f2fs_resize_fs()