xfile
error = xfile_load(rtb->sc->xfile, &urk,
return xfile_store(rtb->sc->xfile, &urk,
return xfile_store(rtb->sc->xfile, word, nr_words << XFS_WORDLOG,
return xfile_load(rtb->sc->xfile, word, nr_words << XFS_WORDLOG,
blocks * mp->m_sb.sb_blocksize, &sc->xfile);
return xfile_load(sc->xfile, rawinfo,
return xfile_store(sc->xfile, &rawinfo,
return xfile_load(sc->xfile, rawinfo, nr_words << XFS_WORDLOG,
XFS_FSB_TO_B(mp, mp->m_rsumblocks), &sc->xfile);
if (sub->sc.xfile)
xfile_destroy(sub->sc.xfile);
if (sc->xfile) {
xfile_destroy(sc->xfile);
sc->xfile = NULL;
sub->sc.xfile = NULL;
struct xfile *xfile;
TP_PROTO(struct xfile *xf, loff_t pos, unsigned long long bytecount),
TP_PROTO(struct xfile *xf, loff_t pos, unsigned long long bytecount), \
__entry->ino = file_inode(xfa->xfile->file)->i_ino;
__entry->ino = file_inode(si->array->xfile->file)->i_ino;
__entry->ino = file_inode(si->array->xfile->file)->i_ino;
__entry->ino = file_inode(si->array->xfile->file)->i_ino;
__entry->ino = file_inode(si->array->xfile->file)->i_ino;
__entry->ino = file_inode(si->array->xfile->file)->i_ino;
__entry->ino = file_inode(si->array->xfile->file)->i_ino;
struct xfile;
TP_PROTO(struct xfile *xf),
TP_PROTO(struct xfile *xf),
return xfile_bytes(array->xfile);
xfile_discard(array->xfile, 0, MAX_LFS_FILESIZE);
xfile_destroy(xfile);
xfile_destroy(array->xfile);
return xfile_load(array->xfile, ptr, array->obj_size,
error = xfile_load(array->xfile, temp, array->obj_size, pos);
error = xfile_store(array->xfile, temp, array->obj_size, pos);
ret = xfile_store(array->xfile, ptr, array->obj_size,
error = xfile_load(array->xfile, temp, array->obj_size,
error = xfile_store(array->xfile, ptr, array->obj_size,
new_pos = xfile_seek_data(array->xfile, end_pos);
error = xfile_load(si->array->xfile, scratch, len, lo_pos);
return xfile_store(si->array->xfile, scratch, len, lo_pos);
folio = xfile_get_folio(si->array->xfile, lo_pos, len, XFILE_ALLOC);
xfile_put_folio(si->array->xfile, folio);
struct xfile *xfile;
xfile_put_folio(si->array->xfile, si->folio);
error = xfile_create(description, 0, &xfile);
folio = xfile_get_folio(si->array->xfile, idx_pos,
error = xfile_load(si->array->xfile, temp, si->array->obj_size,
array->xfile = xfile;
struct xfile *xfile;
error = xfile_store(blob->xfile, &key, sizeof(key), pos);
error = xfile_store(blob->xfile, ptr, size, pos);
xfile_discard(blob->xfile, blob->last_offset, sizeof(key));
error = xfile_load(blob->xfile, &key, sizeof(key), cookie);
xfile_discard(blob->xfile, cookie, sizeof(key) + key.xb_size);
return xfile_bytes(blob->xfile);
xfile_discard(blob->xfile, PAGE_SIZE, MAX_LFS_FILESIZE - PAGE_SIZE);
struct xfile *xfile;
error = xfile_create(description, 0, &xfile);
blob->xfile = xfile;
xfile_destroy(xfile);
xfile_destroy(blob->xfile);
error = xfile_load(blob->xfile, &key, sizeof(key), cookie);
return xfile_load(blob->xfile, ptr, key.xb_size,
struct xfile *xfile;
struct xfile *xf,
struct xfile *xf,
struct xfile *xf,
struct xfile *xf,
struct xfile *xf,
struct xfile *xf,
struct xfile **xfilep)
struct xfile *xf;
xf = kmalloc_obj(struct xfile, XCHK_GFP_FLAGS);
struct xfile *xf)
int xfile_create(const char *description, loff_t isize, struct xfile **xfilep);
void xfile_destroy(struct xfile *xf);
int xfile_load(struct xfile *xf, void *buf, size_t count, loff_t pos);
int xfile_store(struct xfile *xf, const void *buf, size_t count,
void xfile_discard(struct xfile *xf, loff_t pos, u64 count);
loff_t xfile_seek_data(struct xfile *xf, loff_t pos);
struct folio *xfile_get_folio(struct xfile *xf, loff_t offset, size_t len,
void xfile_put_folio(struct xfile *xf, struct folio *folio);
static inline unsigned long long xfile_bytes(struct xfile *xf)