/fs/ |
D | splice.c | 185 unsigned int tail = pipe->tail; in splice_to_pipe() local 199 while (!pipe_full(head, tail, pipe->max_usage)) { in splice_to_pipe() 232 unsigned int tail = pipe->tail; in add_to_pipe() local 239 } else if (pipe_full(head, tail, pipe->max_usage)) { in add_to_pipe() 357 pipe_occupancy(pipe->head, pipe->tail) > 1) in pipe_to_sendpage() 396 unsigned int tail = pipe->tail; in splice_from_pipe_feed() local 400 while (!pipe_empty(head, tail)) { in splice_from_pipe_feed() 401 struct pipe_buffer *buf = &pipe->bufs[tail & mask]; in splice_from_pipe_feed() 428 tail++; in splice_from_pipe_feed() 429 pipe->tail = tail; in splice_from_pipe_feed() [all …]
|
D | pipe.c | 224 unsigned int tail = READ_ONCE(pipe->tail); in pipe_readable() local 227 return !pipe_empty(head, tail) || !writers; in pipe_readable() 254 was_full = pipe_full(pipe->head, pipe->tail, pipe->max_usage); in pipe_read() 258 unsigned int tail = pipe->tail; in pipe_read() local 285 if (!pipe_empty(head, tail)) { in pipe_read() 286 struct pipe_buffer *buf = &pipe->bufs[tail & mask]; in pipe_read() 330 tail++; in pipe_read() 331 pipe->tail = tail; in pipe_read() 337 if (!pipe_empty(head, tail)) /* More to do? */ in pipe_read() 382 was_full = pipe_full(pipe->head, pipe->tail, pipe->max_usage); in pipe_read() [all …]
|
D | aio.c | 61 unsigned tail; member 158 unsigned tail; member 577 ring->head = ring->tail = 0; in aio_setup_ring() 991 unsigned tail) in refill_reqs_available() argument 997 if (head <= tail) in refill_reqs_available() 998 events_in_ring = tail - head; in refill_reqs_available() 1000 events_in_ring = ctx->nr_events - (head - tail); in refill_reqs_available() 1039 refill_reqs_available(ctx, head, ctx->tail); in user_refill_reqs_available() 1127 unsigned tail, pos, head; in aio_complete() local 1137 tail = ctx->tail; in aio_complete() [all …]
|
D | fsopen.c | 39 if (log->head == log->tail) { in fscontext_read() 44 index = log->tail & (logsize - 1); in fscontext_read() 49 log->tail++; in fscontext_read()
|
D | direct-io.c | 113 unsigned tail; /* last valid page + 1 */ member 161 return sdio->tail - sdio->head; in dio_pages_present() 187 sdio->tail = 1; in dio_refill_pages() 196 sdio->tail = (ret + PAGE_SIZE - 1) / PAGE_SIZE; in dio_refill_pages() 449 while (sdio->head < sdio->tail) in dio_cleanup() 938 to = (sdio->head == sdio->tail - 1) ? sdio->to : PAGE_SIZE; in do_direct_IO()
|
D | fs_context.c | 436 sizeof(log->tail) != sizeof(u8)); in logfc() 437 if ((u8)(log->head - log->tail) == logsize) { in logfc() 441 log->tail++; in logfc()
|
D | buffer.c | 907 struct buffer_head *bh, *tail; in link_dev_buffers() local 911 tail = bh; in link_dev_buffers() 914 tail->b_this_page = head; in link_dev_buffers() 1584 struct buffer_head *bh, *head, *tail; in create_empty_buffers() local 1590 tail = bh; in create_empty_buffers() 1593 tail->b_this_page = head; in create_empty_buffers()
|
/fs/affs/ |
D | inode.c | 22 struct affs_tail *tail; in affs_iget() local 50 tail = AFFS_TAIL(sb, bh); in affs_iget() 51 prot = be32_to_cpu(tail->protect); in affs_iget() 76 id = be16_to_cpu(tail->uid); in affs_iget() 84 id = be16_to_cpu(tail->gid); in affs_iget() 92 switch (be32_to_cpu(tail->stype)) { in affs_iget() 98 if (be32_to_cpu(tail->stype) == ST_USERDIR || in affs_iget() 127 size = be32_to_cpu(tail->size); in affs_iget() 136 if (tail->link_chain) in affs_iget() 153 = (be32_to_cpu(tail->change.days) * 86400LL + in affs_iget() [all …]
|
D | super.c | 37 struct affs_root_tail *tail = AFFS_ROOT_TAIL(sb, bh); in affs_commit_super() local 40 affs_secs_to_datestamp(ktime_get_real_seconds(), &tail->disk_change); in affs_commit_super()
|
/fs/9p/ |
D | vfs_dir.c | 40 int tail; member 108 if (rdir->tail == rdir->head) { in v9fs_dir_readdir() 121 rdir->tail = n; in v9fs_dir_readdir() 123 while (rdir->head < rdir->tail) { in v9fs_dir_readdir() 125 rdir->tail - rdir->head, &st); in v9fs_dir_readdir() 167 if (rdir->tail == rdir->head) { in v9fs_dir_readdir_dotl() 174 rdir->tail = err; in v9fs_dir_readdir_dotl() 177 while (rdir->head < rdir->tail) { in v9fs_dir_readdir_dotl() 180 rdir->tail - rdir->head, in v9fs_dir_readdir_dotl()
|
/fs/reiserfs/ |
D | tail_conversion.c | 214 char *tail; in indirect2direct() local 245 tail = (char *)kmap(page); /* this can schedule */ in indirect2direct() 275 tail = tail + (pos & (PAGE_SIZE - 1)); in indirect2direct() 284 tail ? tail : NULL) < 0) { in indirect2direct()
|
/fs/ntfs3/ |
D | record.c | 417 size_t tail; in mi_insert_attr() local 447 tail = 8; /* Not used, just to suppress warning. */ in mi_insert_attr() 450 tail = used - PtrOffset(rec, attr); in mi_insert_attr() 455 memmove(Add2Ptr(attr, asize), attr, tail); in mi_insert_attr() 521 int tail = (int)(used - aoff - asize); in mi_resize_attr() local 525 if (tail < 0 || aoff >= used) in mi_resize_attr() 540 memmove(next + dsize, next, tail); in mi_resize_attr() 549 memmove(next - dsize, next, tail); in mi_resize_attr() 578 u32 tail = used - aoff - asize; in mi_pack_runs() local 582 memmove(next + dsize, next, tail); in mi_pack_runs() [all …]
|
D | bitmap.c | 722 u32 tail, op; in wnd_set_free() local 728 tail = wbits - wbit; in wnd_set_free() 729 op = min_t(u32, tail, bits); in wnd_set_free() 775 u32 tail, op; in wnd_set_used() local 781 tail = wbits - wbit; in wnd_set_used() 782 op = min_t(u32, tail, bits); in wnd_set_used() 826 u32 tail, op; in wnd_is_free_hlp() local 831 tail = wbits - wbit; in wnd_is_free_hlp() 832 op = min_t(u32, tail, bits); in wnd_is_free_hlp() 918 u32 tail, op; in wnd_is_used() local [all …]
|
D | fslog.c | 1411 u32 tail = log->page_size - page_off; in final_log_off() local 1422 if (data_len > tail) { in final_log_off() 1423 data_len -= tail; in final_log_off() 1424 tail = log->data_size; in final_log_off() 1434 if (data_len <= tail) in final_log_off() 1436 data_len -= tail; in final_log_off() 2250 u32 tail = log->page_size - off; in read_log_rec_buf() local 2252 if (tail >= data_len) in read_log_rec_buf() 2253 tail = data_len; in read_log_rec_buf() 2255 data_len -= tail; in read_log_rec_buf() [all …]
|
D | file.c | 1054 size_t cp, tail = PAGE_SIZE - off; in ntfs_compress_write() local 1058 min(tail, bytes), from); in ntfs_compress_write() 1066 if (cp < tail) { in ntfs_compress_write()
|
/fs/adfs/ |
D | dir_f.c | 127 struct adfs_newdirtail *tail = dir->newtail; in adfs_f_validate() local 129 if (head->startmasseq != tail->endmasseq || in adfs_f_validate() 130 tail->dirlastmask || tail->reserved[0] || tail->reserved[1] || in adfs_f_validate() 133 memcmp(&head->startname, &tail->endname, 4) || in adfs_f_validate() 134 adfs_dir_checkbyte(dir) != tail->dircheckbyte) in adfs_f_validate()
|
/fs/ntfs3/lib/ |
D | lzx_decompress.c | 184 u8 *tail; in lzx_postprocess() local 191 tail = &data[size - 6]; in lzx_postprocess() 192 memcpy(saved_bytes, tail, 6); in lzx_postprocess() 193 memset(tail, 0xE8, 6); in lzx_postprocess() 198 if (p >= tail) in lzx_postprocess() 203 memcpy(tail, saved_bytes, 6); in lzx_postprocess()
|
/fs/ext4/ |
D | fast_commit.c | 777 struct ext4_fc_tail tail; in ext4_fc_write_tail() local 785 dst = ext4_fc_reserve_space(sb, EXT4_FC_TAG_BASE_LEN + sizeof(tail), &crc); in ext4_fc_write_tail() 797 tail.fc_tid = cpu_to_le32(sbi->s_journal->j_running_transaction->t_tid); in ext4_fc_write_tail() 798 ext4_fc_memcpy(sb, dst, &tail.fc_tid, sizeof(tail.fc_tid), &crc); in ext4_fc_write_tail() 799 dst += sizeof(tail.fc_tid); in ext4_fc_write_tail() 800 tail.fc_crc = cpu_to_le32(crc); in ext4_fc_write_tail() 801 ext4_fc_memcpy(sb, dst, &tail.fc_crc, sizeof(tail.fc_crc), NULL); in ext4_fc_write_tail() 802 dst += sizeof(tail.fc_crc); in ext4_fc_write_tail() 2059 struct ext4_fc_tail tail; in ext4_fc_replay_scan() local 2124 memcpy(&tail, val, sizeof(tail)); in ext4_fc_replay_scan() [all …]
|
/fs/jbd2/ |
D | recovery.c | 180 struct jbd2_journal_block_tail *tail; in jbd2_descriptor_block_csum_verify() local 187 tail = (struct jbd2_journal_block_tail *)((char *)buf + in jbd2_descriptor_block_csum_verify() 189 provided = tail->t_checksum; in jbd2_descriptor_block_csum_verify() 190 tail->t_checksum = 0; in jbd2_descriptor_block_csum_verify() 192 tail->t_checksum = provided; in jbd2_descriptor_block_csum_verify()
|
/fs/jfs/ |
D | jfs_logmgr.c | 2014 struct lbuf *tail; in lbmWrite() local 2036 tail = log->wqueue; in lbmWrite() 2041 if (tail == NULL) { in lbmWrite() 2046 bp->l_wqnext = tail->l_wqnext; in lbmWrite() 2047 tail->l_wqnext = bp; in lbmWrite() 2050 tail = bp; in lbmWrite() 2054 if ((bp != tail->l_wqnext) || !(flag & lbmWRITE)) { in lbmWrite() 2168 struct lbuf *nextbp, *tail; in lbmIODone() local 2228 tail = log->wqueue; in lbmIODone() 2231 if (bp == tail) { in lbmIODone() [all …]
|
/fs/incfs/ |
D | data_mgmt.c | 554 struct read_log_state *head, *tail; in log_block_read() local 581 tail = &log->rl_tail; in log_block_read() 650 while (tail->current_pass_no < head->current_pass_no && in log_block_read() 651 tail->next_offset < head->next_offset + record_size) in log_block_read() 652 log_read_one_record(log, tail); in log_block_read() 1836 struct read_log_state *head, *tail; in incfs_collect_logged_reads() local 1840 tail = &log->rl_tail; in incfs_collect_logged_reads() 1851 if (state->current_record_no < tail->current_record_no) { in incfs_collect_logged_reads() 1855 (u32)tail->next_offset, (u32)tail->current_pass_no); in incfs_collect_logged_reads() 1857 *state = *tail; in incfs_collect_logged_reads()
|
/fs/fuse/ |
D | dev.c | 1402 if (pipe_occupancy(pipe->head, pipe->tail) + cs.nr_segs > pipe->max_usage) { in fuse_dev_splice_read() 1995 unsigned int head, tail, mask, count; in fuse_dev_splice_write() local 2011 tail = pipe->tail; in fuse_dev_splice_write() 2013 count = head - tail; in fuse_dev_splice_write() 2023 for (idx = tail; idx != head && rem < len; idx++) in fuse_dev_splice_write() 2035 if (WARN_ON(nbuf >= count || tail == head)) in fuse_dev_splice_write() 2038 ibuf = &pipe->bufs[tail & mask]; in fuse_dev_splice_write() 2044 tail++; in fuse_dev_splice_write() 2045 pipe->tail = tail; in fuse_dev_splice_write()
|
/fs/gfs2/ |
D | log.h | 84 u64 seq, u32 tail, u32 lblock, u32 flags,
|
/fs/ntfs/ |
D | runlist.c | 373 int tail; /* Start of tail of @dst. */ in ntfs_rl_replace() local 412 tail = loc + right + 1; in ntfs_rl_replace() 423 ntfs_rl_mm(dst, marker, tail, dsize - tail); in ntfs_rl_replace() 427 if (dsize - tail > 0 && dst[marker].lcn == LCN_ENOENT) in ntfs_rl_replace()
|
D | aops.c | 1728 struct buffer_head *tail; in mark_ntfs_record_dirty() local 1732 tail = bh; in mark_ntfs_record_dirty() 1735 tail->b_this_page = head; in mark_ntfs_record_dirty()
|