Searched refs:xfile (Results 1 - 11 of 11) sorted by relevance

/linux-master/fs/xfs/scrub/
H A Dxfile.h9 struct xfile { struct
13 int xfile_create(const char *description, loff_t isize, struct xfile **xfilep);
14 void xfile_destroy(struct xfile *xf);
16 int xfile_load(struct xfile *xf, void *buf, size_t count, loff_t pos);
17 int xfile_store(struct xfile *xf, const void *buf, size_t count,
20 void xfile_discard(struct xfile *xf, loff_t pos, u64 count);
21 loff_t xfile_seek_data(struct xfile *xf, loff_t pos);
26 struct folio *xfile_get_folio(struct xfile *xf, loff_t offset, size_t len,
28 void xfile_put_folio(struct xfile *xf, struct folio *folio);
30 static inline unsigned long long xfile_bytes(struct xfile *x
[all...]
H A Dxfblob.c11 #include "scrub/xfile.h"
18 * Stores and retrieves blobs using an xfile. Objects are appended to the file
37 struct xfile *xfile; local
40 error = xfile_create(description, 0, &xfile);
50 blob->xfile = xfile;
57 xfile_destroy(xfile);
66 xfile_destroy(blob->xfile);
81 error = xfile_load(blob->xfile,
[all...]
H A Dxfblob.h10 struct xfile *xfile; member in struct:xfblob
H A Dxfile.c14 #include "scrub/xfile.h"
29 * requirements. Therefore, the xfile mechanism uses an unlinked shmem file to
32 * xfile must be freed with xfile_destroy.
47 * Create an xfile of the given size. The description will be used in the
54 struct xfile **xfilep)
57 struct xfile *xf;
60 xf = kmalloc(sizeof(struct xfile), XCHK_GFP_FLAGS);
91 struct xfile *xf)
108 struct xfile *xf,
171 struct xfile *x
[all...]
H A Dxfarray.c11 #include "scrub/xfile.h"
19 * This memory array uses an xfile (which itself is a shmem file) to store
32 * Pointer to scratch space. Because we can't access the xfile data directly,
41 /* Compute array index given an xfile offset. */
53 /* Compute xfile offset of array element. */
77 struct xfile *xfile; local
82 error = xfile_create(description, 0, &xfile);
91 array->xfile = xfile;
[all...]
H A Dxfarray.h9 /* xfile array index type, along with cursor initialization */
14 /* Iterate each index of an xfile array. */
22 struct xfile *xfile; member in struct:xfarray
101 /* Declarations for xfile array sort functionality. */
H A Drtsummary.c24 #include "scrub/xfile.h"
35 * the ondisk version. We use the 'xfile' functionality to store this
62 * Create an xfile to construct a new rtsummary file. The xfile allows
66 error = xfile_create(descr, mp->m_rsumsize, &sc->xfile);
112 /* Helper functions to record suminfo words in an xfile. */
120 return xfile_load(sc->xfile, rawinfo,
131 return xfile_store(sc->xfile, &rawinfo,
143 return xfile_load(sc->xfile, rawinfo, nr_words << XFS_WORDLOG,
H A Dscrub.c31 #include "scrub/xfile.h"
204 if (sub->sc.xfile)
205 xfile_destroy(sub->sc.xfile);
242 if (sc->xfile) {
243 xfile_destroy(sc->xfile);
244 sc->xfile = NULL;
573 sub->sc.xfile = NULL;
H A Dscrub.h149 /* xfile used by the scrubbers; freed at teardown. */
150 struct xfile *xfile; member in struct:xfs_scrub
H A Dtrace.h21 struct xfile;
957 TP_PROTO(struct xfile *xf),
981 TP_PROTO(struct xfile *xf),
1002 TP_PROTO(struct xfile *xf, loff_t pos, unsigned long long bytecount),
1029 TP_PROTO(struct xfile *xf, loff_t pos, unsigned long long bytecount), \
1052 __entry->ino = file_inode(xfa->xfile->file)->i_ino;
1072 __entry->ino = file_inode(si->array->xfile->file)->i_ino;
1092 __entry->ino = file_inode(si->array->xfile->file)->i_ino;
1114 __entry->ino = file_inode(si->array->xfile->file)->i_ino;
1142 __entry->ino = file_inode(si->array->xfile
[all...]
/linux-master/fs/xfs/
H A DMakefile182 xfile.o \

Completed in 1041 milliseconds