| /linux/fs/xfs/scrub/ |
| H A D | xfblob.c | 37 struct xfile *xfile; in xfblob_create() local 40 error = xfile_create(description, 0, &xfile); in xfblob_create() 50 blob->xfile = xfile; in xfblob_create() 57 xfile_destroy(xfile); in xfblob_create() 66 xfile_destroy(blob->xfile); in xfblob_destroy() 81 error = xfile_load(blob->xfile, &key, sizeof(key), cookie); in xfblob_load() 94 return xfile_load(blob->xfile, ptr, key.xb_size, in xfblob_load() 114 error = xfile_store(blob->xfile, &key, sizeof(key), pos); in xfblob_store() 119 error = xfile_store(blob->xfile, ptr, size, pos); in xfblob_store() 127 xfile_discard(blob->xfile, blob->last_offset, sizeof(key)); in xfblob_store() [all …]
|
| H A D | xfile.h | 9 struct xfile { struct 13 int xfile_create(const char *description, loff_t isize, struct xfile **xfilep); argument 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 *xf) in xfile_bytes()
|
| H A D | xfile.c | 54 struct xfile **xfilep) in xfile_create() 57 struct xfile *xf; in xfile_create() 60 xf = kmalloc_obj(struct xfile, XCHK_GFP_FLAGS); in xfile_create() 92 struct xfile *xf) in xfile_destroy() 109 struct xfile *xf, in xfile_load() 172 struct xfile *xf, in xfile_store() 231 struct xfile *xf, in xfile_seek_data() 248 struct xfile *xf, in xfile_get_folio() 306 struct xfile *xf, in xfile_put_folio() 318 struct xfile *xf, in xfile_discard()
|
| H A D | xfarray.c | 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() 116 xfile_destroy(xfile); in xfarray_create() 125 xfile_destroy(array->xfile); in xfarray_destroy() 139 return xfile_load(array->xfile, ptr, array->obj_size, in xfarray_load() 155 error = xfile_load(array->xfile, temp, array->obj_size, pos); in xfarray_is_unset() 187 error = xfile_store(array->xfile, temp, array->obj_size, pos); in xfarray_unset() 212 ret = xfile_store(array->xfile, ptr, array->obj_size, in xfarray_store() 248 error = xfile_load(array->xfile, temp, array->obj_size, in xfarray_store_anywhere() [all …]
|
| H A D | xfblob.h | 10 struct xfile *xfile; member
|
| H A D | rtsummary.c | 72 XFS_FSB_TO_B(mp, mp->m_rsumblocks), &sc->xfile); in xchk_setup_rtsummary() 120 return xfile_load(sc->xfile, rawinfo, in xfsum_load() 131 return xfile_store(sc->xfile, &rawinfo, in xfsum_store() 143 return xfile_load(sc->xfile, rawinfo, nr_words << XFS_WORDLOG, in xfsum_copyout()
|
| H A D | xfarray.h | 22 struct xfile *xfile; member
|
| H A D | rtbitmap_repair.c | 55 blocks * mp->m_sb.sb_blocksize, &sc->xfile); in xrep_setup_rtbitmap() 108 error = xfile_load(rtb->sc->xfile, &urk, in xfbmp_load() 129 return xfile_store(rtb->sc->xfile, &urk, in xfbmp_store() 141 return xfile_store(rtb->sc->xfile, word, nr_words << XFS_WORDLOG, in xfbmp_copyin() 152 return xfile_load(rtb->sc->xfile, word, nr_words << XFS_WORDLOG, in xfbmp_copyout()
|
| H A D | scrub.c | 216 if (sub->sc.xfile) in xchk_scrub_free_subord() 217 xfile_destroy(sub->sc.xfile); in xchk_scrub_free_subord() 258 if (sc->xfile) { in xchk_teardown() 259 xfile_destroy(sc->xfile); in xchk_teardown() 260 sc->xfile = NULL; in xchk_teardown() 648 sub->sc.xfile = NULL; in xchk_scrub_create_subord()
|
| H A D | scrub.h | 165 struct xfile *xfile; member
|
| H A D | trace.h | 22 struct xfile; 970 TP_PROTO(struct xfile *xf), 984 TP_PROTO(struct xfile *xf), 1005 TP_PROTO(struct xfile *xf, loff_t pos, unsigned long long bytecount), 1032 TP_PROTO(struct xfile *xf, loff_t pos, unsigned long long bytecount), \ 1055 __entry->ino = file_inode(xfa->xfile->file)->i_ino; 1075 __entry->ino = file_inode(si->array->xfile->file)->i_ino; 1095 __entry->ino = file_inode(si->array->xfile->file)->i_ino; 1117 __entry->ino = file_inode(si->array->xfile->file)->i_ino; 1145 __entry->ino = file_inode(si->array->xfile->file)->i_ino; [all …]
|
| /linux/Documentation/filesystems/xfs/ |
| H A D | xfs-online-fsck-design.rst | 1837 Hence, the ``xfile`` was born! 1853 xfile Access Models 1870 To support the first four use cases, high level data structures wrap the xfile 1872 The rest of this section discusses the interfaces that the xfile presents to 1880 functions are provided to read and persist objects into an xfile that treat any 1892 pinned nor locked, which means the xfile must not pin too many folios. 1894 Short term direct access to xfile contents is done by locking the pagecache 1897 long term direct access to xfile contents is done by bumping the folio refcount, 1903 retrieve the (locked) folio that backs part of an xfile and to release it. 1908 xfile Access Coordination [all …]
|
| /linux/fs/xfs/ |
| H A D | Makefile | 197 xfile.o \
|