Lines Matching refs:b_flags
60 return __xfs_buf_submit(bp, !(bp->b_flags & XBF_ASYNC)); in xfs_buf_submit()
101 if (bp->b_flags & XBF_NO_IOACCT) in xfs_buf_ioacct_inc()
104 ASSERT(bp->b_flags & XBF_ASYNC); in xfs_buf_ioacct_inc()
152 bp->b_flags |= XBF_STALE; in xfs_buf_stale()
159 bp->b_flags &= ~_XBF_DELWRI_Q; in xfs_buf_stale()
243 bp->b_flags = flags; in _xfs_buf_alloc()
280 ASSERT(bp->b_flags & _XBF_PAGES); in xfs_buf_free_pages()
294 bp->b_flags &= ~_XBF_PAGES; in xfs_buf_free_pages()
315 if (bp->b_flags & _XBF_PAGES) in xfs_buf_free()
317 else if (bp->b_flags & _XBF_KMEM) in xfs_buf_free()
350 bp->b_flags |= _XBF_KMEM; in xfs_buf_alloc_kmem()
377 bp->b_flags |= _XBF_PAGES; in xfs_buf_alloc_pages()
420 ASSERT(bp->b_flags & _XBF_PAGES); in _xfs_buf_map_pages()
485 ASSERT(bp->b_flags & XBF_STALE); in _xfs_buf_obj_cmp()
562 if (bp->b_flags & XBF_STALE) { in xfs_buf_find_lock()
567 ASSERT((bp->b_flags & _XBF_DELWRI_Q) == 0); in xfs_buf_find_lock()
568 bp->b_flags &= _XBF_KMEM | _XBF_PAGES; in xfs_buf_find_lock()
760 bp->b_flags &= ~(XBF_WRITE | XBF_ASYNC | XBF_READ_AHEAD | XBF_DONE); in _xfs_buf_read()
761 bp->b_flags |= flags & (XBF_READ | XBF_ASYNC | XBF_READ_AHEAD); in _xfs_buf_read()
788 ASSERT(bp->b_flags & XBF_DONE); in xfs_buf_reverify()
797 bp->b_flags &= ~XBF_DONE; in xfs_buf_reverify()
823 if (!(bp->b_flags & XBF_DONE)) { in xfs_buf_read_map()
843 bp->b_flags &= ~XBF_READ; in xfs_buf_read_map()
868 bp->b_flags &= ~XBF_DONE; in xfs_buf_read_map()
928 bp->b_flags |= XBF_READ; in xfs_buf_read_uncached()
1044 if (!(bp->b_flags & XBF_STALE) && atomic_read(&bp->b_lru_ref)) { in xfs_buf_rele()
1068 ASSERT(!(bp->b_flags & _XBF_DELWRI_Q)); in xfs_buf_rele()
1124 if (atomic_read(&bp->b_pin_count) && (bp->b_flags & XBF_STALE)) in xfs_buf_lock()
1238 if (bp->b_flags & _XBF_LOGRECOVERY) { in xfs_buf_ioend_handle_error()
1246 if (!(bp->b_flags & XBF_ASYNC)) in xfs_buf_ioend_handle_error()
1253 !(bp->b_flags & (XBF_STALE | XBF_WRITE_FAIL))) { in xfs_buf_ioend_handle_error()
1271 if (bp->b_flags & _XBF_INODES) in xfs_buf_ioend_handle_error()
1273 else if (bp->b_flags & _XBF_DQUOTS) in xfs_buf_ioend_handle_error()
1283 bp->b_flags |= (XBF_DONE | XBF_WRITE_FAIL); in xfs_buf_ioend_handle_error()
1288 bp->b_flags |= XBF_DONE; in xfs_buf_ioend_handle_error()
1289 bp->b_flags &= ~XBF_WRITE; in xfs_buf_ioend_handle_error()
1307 if (bp->b_flags & XBF_READ) { in xfs_buf_ioend()
1311 bp->b_flags |= XBF_DONE; in xfs_buf_ioend()
1314 bp->b_flags &= ~XBF_WRITE_FAIL; in xfs_buf_ioend()
1315 bp->b_flags |= XBF_DONE; in xfs_buf_ioend()
1334 if (bp->b_flags & _XBF_INODES) in xfs_buf_ioend()
1336 else if (bp->b_flags & _XBF_DQUOTS) in xfs_buf_ioend()
1341 bp->b_flags &= ~(XBF_READ | XBF_WRITE | XBF_READ_AHEAD | in xfs_buf_ioend()
1344 if (bp->b_flags & XBF_ASYNC) in xfs_buf_ioend()
1400 bp->b_flags &= ~XBF_DONE; in xfs_buf_ioend_fail()
1414 bp->b_flags |= XBF_WRITE; in xfs_bwrite()
1415 bp->b_flags &= ~(XBF_ASYNC | XBF_READ | _XBF_DELWRI_Q | in xfs_bwrite()
1431 (bp->b_flags & XBF_WRITE) && (bp->b_flags & XBF_ASYNC) && in xfs_buf_bio_end_io()
1445 if (!bp->b_error && xfs_buf_is_vmapped(bp) && (bp->b_flags & XBF_READ)) in xfs_buf_bio_end_io()
1547 if (bp->b_flags & XBF_WRITE) { in _xfs_buf_ioapply()
1581 if (bp->b_flags & XBF_READ_AHEAD) in _xfs_buf_ioapply()
1614 ASSERT(!(bp->b_flags & XBF_ASYNC)); in xfs_buf_iowait()
1638 ASSERT(!(bp->b_flags & _XBF_DELWRI_Q)); in __xfs_buf_submit()
1668 if (bp->b_flags & XBF_WRITE) in __xfs_buf_submit()
1680 if (bp->b_flags & XBF_ASYNC) in __xfs_buf_submit()
1690 if (bp->b_error || !(bp->b_flags & XBF_ASYNC)) in __xfs_buf_submit()
1765 ASSERT(bp->b_flags & XBF_DONE); in __xfs_buf_mark_corrupt()
1853 if (bp->b_flags & XBF_WRITE_FAIL) { in xfs_buftarg_drain()
2068 bp->b_flags &= ~_XBF_DELWRI_Q; in xfs_buf_delwri_cancel()
2091 ASSERT(!(bp->b_flags & XBF_READ)); in xfs_buf_delwri_queue()
2098 if (bp->b_flags & _XBF_DELWRI_Q) { in xfs_buf_delwri_queue()
2113 bp->b_flags |= _XBF_DELWRI_Q; in xfs_buf_delwri_queue()
2183 if (!(bp->b_flags & _XBF_DELWRI_Q)) { in xfs_buf_delwri_submit_buffers()
2197 bp->b_flags &= ~_XBF_DELWRI_Q; in xfs_buf_delwri_submit_buffers()
2198 bp->b_flags |= XBF_WRITE; in xfs_buf_delwri_submit_buffers()
2200 bp->b_flags &= ~XBF_ASYNC; in xfs_buf_delwri_submit_buffers()
2203 bp->b_flags |= XBF_ASYNC; in xfs_buf_delwri_submit_buffers()
2296 ASSERT(bp->b_flags & _XBF_DELWRI_Q); in xfs_buf_delwri_pushbuf()
2322 bp->b_flags |= _XBF_DELWRI_Q; in xfs_buf_delwri_pushbuf()