Searched refs:xfile (Results 1 - 8 of 8) sorted by relevance
/kernel/linux/linux-6.6/fs/xfs/scrub/ |
H A D | xfile.h | 25 struct xfile { struct 29 int xfile_create(const char *description, loff_t isize, struct xfile **xfilep); 30 void xfile_destroy(struct xfile *xf); 32 ssize_t xfile_pread(struct xfile *xf, void *buf, size_t count, loff_t pos); 33 ssize_t xfile_pwrite(struct xfile *xf, const void *buf, size_t count, 41 xfile_obj_load(struct xfile *xf, void *buf, size_t count, loff_t pos) in xfile_obj_load() 55 xfile_obj_store(struct xfile *xf, const void *buf, size_t count, loff_t pos) in xfile_obj_store() 64 loff_t xfile_seek_data(struct xfile *xf, loff_t pos); 71 int xfile_stat(struct xfile *xf, struct xfile_stat *statbuf); 73 int xfile_get_page(struct xfile *x [all...] |
H A D | xfarray.c | 10 #include "scrub/xfile.h" 19 * This memory array uses an xfile (which itself is a memfd "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; in xfarray_create() local 82 error = xfile_create(description, 0, &xfile); in xfarray_create() 91 array->xfile = xfile; in xfarray_create() [all...] |
H A D | xfile.c | 13 #include "scrub/xfile.h" 29 * requirements. Therefore, the xfile mechanism uses an unlinked shmem file to 32 * xfile must be freed with xfile_destroy. 40 * create a sparse xfile, please be careful about reading from uninitialized 54 * Create an xfile of the given size. The description will be used in the 61 struct xfile **xfilep) in xfile_create() 64 struct xfile *xf; in xfile_create() 67 xf = kmalloc(sizeof(struct xfile), XCHK_GFP_FLAGS); in xfile_create() 81 * xfile users are responsible for keeping the xfile hidde in xfile_create() [all...] |
H A D | rtsummary.c | 22 #include "scrub/xfile.h" 30 * the ondisk version. We use the 'xfile' functionality to store this 44 * Create an xfile to construct a new rtsummary file. The xfile allows in xchk_setup_rtsummary() 48 error = xfile_create(descr, mp->m_rsumsize, &sc->xfile); in xchk_setup_rtsummary() 77 /* Helper functions to record suminfo words in an xfile. */ 87 return xfile_obj_load(sc->xfile, info, sizeof(xfs_suminfo_t), in xfsum_load() 97 return xfile_obj_store(sc->xfile, &info, sizeof(xfs_suminfo_t), in xfsum_store() 108 return xfile_obj_load(sc->xfile, info, nr_words << XFS_WORDLOG, in xfsum_copyout()
|
H A D | xfarray.h | 9 /* xfile array index type, along with cursor initialization */ 13 /* Iterate each index of an xfile array. */ 21 struct xfile *xfile; member 57 /* Declarations for xfile array sort functionality. */
|
H A D | scrub.h | 91 /* xfile used by the scrubbers; freed at teardown. */ 92 struct xfile *xfile; member
|
H A D | trace.h | 19 struct xfile; 782 TP_PROTO(struct xfile *xf), 806 TP_PROTO(struct xfile *xf), 834 TP_PROTO(struct xfile *xf, loff_t pos, unsigned long long bytecount), 868 TP_PROTO(struct xfile *xf, loff_t pos, unsigned long long bytecount), \ 890 __entry->ino = file_inode(xfa->xfile->file)->i_ino; 910 __entry->ino = file_inode(si->array->xfile->file)->i_ino; 930 __entry->ino = file_inode(si->array->xfile->file)->i_ino; 952 __entry->ino = file_inode(si->array->xfile->file)->i_ino; 980 __entry->ino = file_inode(si->array->xfile [all...] |
H A D | scrub.c | 26 #include "scrub/xfile.h" 189 if (sc->xfile) { in xchk_teardown() 190 xfile_destroy(sc->xfile); in xchk_teardown() 191 sc->xfile = NULL; in xchk_teardown()
|
Completed in 4 milliseconds