Home
last modified time | relevance | path

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

/fs/ubifs/
Drecovery.c102 void *sbuf, *buf; in get_master_node() local
104 sbuf = vmalloc(c->leb_size); in get_master_node()
105 if (!sbuf) in get_master_node()
108 err = ubifs_leb_read(c, lnum, sbuf, 0, c->leb_size, 0); in get_master_node()
114 buf = sbuf; in get_master_node()
173 *pbuf = sbuf; in get_master_node()
179 vfree(sbuf); in get_master_node()
623 int offs, void *sbuf, int jhead) in ubifs_recover_leb() argument
628 void *buf = sbuf + offs; in ubifs_recover_leb()
632 sleb = ubifs_start_scan(c, lnum, offs, sbuf); in ubifs_recover_leb()
[all …]
Dscan.c126 int offs, void *sbuf) in ubifs_start_scan() argument
139 sleb->buf = sbuf; in ubifs_start_scan()
141 err = ubifs_leb_read(c, lnum, sbuf + offs, offs, c->leb_size - offs, 0); in ubifs_start_scan()
255 int offs, void *sbuf, int quiet) in ubifs_scan() argument
257 void *buf = sbuf + offs; in ubifs_scan()
261 sleb = ubifs_start_scan(c, lnum, offs, sbuf); in ubifs_scan()
Dreplay.c698 sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, b->bud->jhead); in replay_bud()
700 sleb = ubifs_scan(c, lnum, offs, c->sbuf, 0); in replay_bud()
998 static int replay_log_leb(struct ubifs_info *c, int lnum, int offs, void *sbuf) in replay_log_leb() argument
1006 sleb = ubifs_scan(c, lnum, offs, sbuf, c->need_recovery); in replay_log_leb()
1015 sleb = ubifs_recover_log_leb(c, lnum, offs, sbuf); in replay_log_leb()
1215 err = replay_log_leb(c, lnum, 0, c->sbuf); in ubifs_replay_journal()
Dubifs.h1406 void *sbuf; member
1738 int offs, void *sbuf, int quiet);
1743 int offs, void *sbuf);
2040 int offs, void *sbuf, int jhead);
2042 int offs, void *sbuf);
2043 int ubifs_recover_inl_heads(struct ubifs_info *c, void *sbuf);
2044 int ubifs_clean_lebs(struct ubifs_info *c, void *sbuf);
Dsuper.c1260 c->sbuf = vmalloc(c->leb_size); in mount_ubifs()
1261 if (!c->sbuf) in mount_ubifs()
1354 err = ubifs_recover_inl_heads(c, c->sbuf); in mount_ubifs()
1600 vfree(c->sbuf); in mount_ubifs()
1642 vfree(c->sbuf); in ubifs_umount()
1692 err = ubifs_clean_lebs(c, c->sbuf); in ubifs_remount_rw()
1695 err = ubifs_recover_inl_heads(c, c->sbuf); in ubifs_remount_rw()
Dmaster.c101 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 1); in scan_for_master()
117 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 1); in scan_for_master()
Dorphan.c772 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 1); in kill_orphans()
776 c->sbuf, -1); in kill_orphans()
Dsb.c808 err = ubifs_leb_read(c, lnum, c->sbuf, 0, len, 1); in fixup_leb()
812 return ubifs_leb_change(c, lnum, c->sbuf, len); in fixup_leb()
Dauth.c223 sleb = ubifs_scan(c, UBIFS_SB_LNUM, UBIFS_SB_NODE_SZ, c->sbuf, 0); in ubifs_sb_verify_signature()
Dlog.c658 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 0); in ubifs_consolidate_log()
Dgc.c541 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 0); in ubifs_garbage_collect_leb()
/fs/
Dstatfs.c234 static int vfs_ustat(dev_t dev, struct kstatfs *sbuf) in vfs_ustat() argument
241 err = statfs_by_dentry(s->s_root, sbuf); in vfs_ustat()
249 struct kstatfs sbuf; in SYSCALL_DEFINE2() local
250 int err = vfs_ustat(new_decode_dev(dev), &sbuf); in SYSCALL_DEFINE2()
255 tmp.f_tfree = sbuf.f_bfree; in SYSCALL_DEFINE2()
256 tmp.f_tinode = sbuf.f_ffree; in SYSCALL_DEFINE2()
389 struct kstatfs sbuf; in COMPAT_SYSCALL_DEFINE2() local
390 int err = vfs_ustat(new_decode_dev(dev), &sbuf); in COMPAT_SYSCALL_DEFINE2()
395 tmp.f_tfree = sbuf.f_bfree; in COMPAT_SYSCALL_DEFINE2()
396 tmp.f_tinode = sbuf.f_ffree; in COMPAT_SYSCALL_DEFINE2()
/fs/xfs/
Dxfs_attr_list.c55 xfs_attr_sf_sort_t *sbuf, *sbp; in xfs_attr_shortform_list() local
111 sbsize = sf->hdr.count * sizeof(*sbuf); in xfs_attr_shortform_list()
112 sbp = sbuf = kmem_alloc(sbsize, KM_NOFS); in xfs_attr_shortform_list()
127 kmem_free(sbuf); in xfs_attr_shortform_list()
146 xfs_sort(sbuf, nsbuf, sizeof(*sbuf), xfs_attr_shortform_compare); in xfs_attr_shortform_list()
154 for (sbp = sbuf, i = 0; i < nsbuf; i++, sbp++) { in xfs_attr_shortform_list()
165 kmem_free(sbuf); in xfs_attr_shortform_list()
187 kmem_free(sbuf); in xfs_attr_shortform_list()