Home
last modified time | relevance | path

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

/fs/ubifs/
Drecovery.c114 void *sbuf, *buf; in get_master_node() local
116 sbuf = vmalloc(c->leb_size); in get_master_node()
117 if (!sbuf) in get_master_node()
120 err = ubifs_leb_read(c, lnum, sbuf, 0, c->leb_size, 0); in get_master_node()
126 buf = sbuf; in get_master_node()
185 *pbuf = sbuf; in get_master_node()
191 vfree(sbuf); in get_master_node()
636 int offs, void *sbuf, int jhead) in ubifs_recover_leb() argument
641 void *buf = sbuf + offs; in ubifs_recover_leb()
645 sleb = ubifs_start_scan(c, lnum, offs, sbuf); in ubifs_recover_leb()
[all …]
Dscan.c136 int offs, void *sbuf) in ubifs_start_scan() argument
149 sleb->buf = sbuf; in ubifs_start_scan()
151 err = ubifs_leb_read(c, lnum, sbuf + offs, offs, c->leb_size - offs, 0); in ubifs_start_scan()
269 int offs, void *sbuf, int quiet) in ubifs_scan() argument
271 void *buf = sbuf + offs; in ubifs_scan()
275 sleb = ubifs_start_scan(c, lnum, offs, sbuf); in ubifs_scan()
Dubifs.h1372 void *sbuf; member
1503 int offs, void *sbuf, int quiet);
1508 int offs, void *sbuf);
1756 int offs, void *sbuf, int jhead);
1758 int offs, void *sbuf);
1759 int ubifs_recover_inl_heads(struct ubifs_info *c, void *sbuf);
1760 int ubifs_clean_lebs(struct ubifs_info *c, void *sbuf);
Dreplay.c559 sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, b->bud->jhead); in replay_bud()
561 sleb = ubifs_scan(c, lnum, offs, c->sbuf, 0); in replay_bud()
826 static int replay_log_leb(struct ubifs_info *c, int lnum, int offs, void *sbuf) in replay_log_leb() argument
834 sleb = ubifs_scan(c, lnum, offs, sbuf, c->need_recovery); in replay_log_leb()
843 sleb = ubifs_recover_log_leb(c, lnum, offs, sbuf); in replay_log_leb()
1040 err = replay_log_leb(c, lnum, offs, c->sbuf); in ubifs_replay_journal()
Dsuper.c1213 c->sbuf = vmalloc(c->leb_size); in mount_ubifs()
1214 if (!c->sbuf) in mount_ubifs()
1292 err = ubifs_recover_inl_heads(c, c->sbuf); in mount_ubifs()
1515 vfree(c->sbuf); in mount_ubifs()
1554 vfree(c->sbuf); in ubifs_umount()
1618 err = ubifs_clean_lebs(c, c->sbuf); in ubifs_remount_rw()
1621 err = ubifs_recover_inl_heads(c, c->sbuf); in ubifs_remount_rw()
Dmaster.c44 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 1); in scan_for_master()
60 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 1); in scan_for_master()
Dsb.c690 err = ubifs_leb_read(c, lnum, c->sbuf, 0, len, 1); in fixup_leb()
694 return ubifs_leb_change(c, lnum, c->sbuf, len, UBI_UNKNOWN); in fixup_leb()
Dorphan.c673 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 1); in kill_orphans()
677 c->sbuf, -1); in kill_orphans()
Dlog.c663 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 0); in ubifs_consolidate_log()
Dgc.c516 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 0); in ubifs_garbage_collect_leb()
/fs/
Dstatfs.c209 int vfs_ustat(dev_t dev, struct kstatfs *sbuf) in vfs_ustat() argument
216 err = statfs_by_dentry(s->s_root, sbuf); in vfs_ustat()
224 struct kstatfs sbuf; in SYSCALL_DEFINE2() local
225 int err = vfs_ustat(new_decode_dev(dev), &sbuf); in SYSCALL_DEFINE2()
230 tmp.f_tfree = sbuf.f_bfree; in SYSCALL_DEFINE2()
231 tmp.f_tinode = sbuf.f_ffree; in SYSCALL_DEFINE2()
Dcompat.c339 struct kstatfs sbuf; in compat_sys_ustat() local
340 int err = vfs_ustat(new_decode_dev(dev), &sbuf); in compat_sys_ustat()
345 tmp.f_tfree = sbuf.f_bfree; in compat_sys_ustat()
346 tmp.f_tinode = sbuf.f_ffree; in compat_sys_ustat()
/fs/xfs/
Dxfs_attr_leaf.c592 xfs_attr_sf_sort_t *sbuf, *sbp; in xfs_attr_shortform_list() local
654 sbsize = sf->hdr.count * sizeof(*sbuf); in xfs_attr_shortform_list()
655 sbp = sbuf = kmem_alloc(sbsize, KM_SLEEP | KM_NOFS); in xfs_attr_shortform_list()
669 kmem_free(sbuf); in xfs_attr_shortform_list()
688 xfs_sort(sbuf, nsbuf, sizeof(*sbuf), xfs_attr_shortform_compare); in xfs_attr_shortform_list()
696 for (sbp = sbuf, i = 0; i < nsbuf; i++, sbp++) { in xfs_attr_shortform_list()
707 kmem_free(sbuf); in xfs_attr_shortform_list()
732 kmem_free(sbuf); in xfs_attr_shortform_list()