/fs/ |
D | splice.c | 186 unsigned int tail = pipe->tail; in splice_to_pipe() local 200 while (!pipe_full(head, tail, pipe->max_usage)) { in splice_to_pipe() 233 unsigned int tail = pipe->tail; in add_to_pipe() local 240 } else if (pipe_full(head, tail, pipe->max_usage)) { in add_to_pipe() 361 pipe_occupancy(pipe->head, pipe->tail) > 1) in pipe_to_sendpage() 400 unsigned int tail = pipe->tail; in splice_from_pipe_feed() local 404 while (!pipe_empty(head, tail)) { in splice_from_pipe_feed() 405 struct pipe_buffer *buf = &pipe->bufs[tail & mask]; in splice_from_pipe_feed() 432 tail++; in splice_from_pipe_feed() 433 pipe->tail = tail; in splice_from_pipe_feed() [all …]
|
D | pipe.c | 223 unsigned int tail = READ_ONCE(pipe->tail); in pipe_readable() local 226 return !pipe_empty(head, tail) || !writers; in pipe_readable() 253 was_full = pipe_full(pipe->head, pipe->tail, pipe->max_usage); in pipe_read() 257 unsigned int tail = pipe->tail; in pipe_read() local 284 if (!pipe_empty(head, tail)) { in pipe_read() 285 struct pipe_buffer *buf = &pipe->bufs[tail & mask]; in pipe_read() 329 tail++; in pipe_read() 330 pipe->tail = tail; in pipe_read() 336 if (!pipe_empty(head, tail)) /* More to do? */ in pipe_read() 381 was_full = pipe_full(pipe->head, pipe->tail, pipe->max_usage); in pipe_read() [all …]
|
D | aio.c | 62 unsigned tail; member 159 unsigned tail; member 551 ring->head = ring->tail = 0; in aio_setup_ring() 969 unsigned tail) in refill_reqs_available() argument 975 if (head <= tail) in refill_reqs_available() 976 events_in_ring = tail - head; in refill_reqs_available() 978 events_in_ring = ctx->nr_events - (head - tail); in refill_reqs_available() 1017 refill_reqs_available(ctx, head, ctx->tail); in user_refill_reqs_available() 1105 unsigned tail, pos, head; in aio_complete() local 1115 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 163 return sdio->tail - sdio->head; in dio_pages_present() 188 sdio->tail = 1; in dio_refill_pages() 198 sdio->tail = (ret + PAGE_SIZE - 1) / PAGE_SIZE; in dio_refill_pages() 455 while (sdio->head < sdio->tail) in dio_cleanup() 942 to = (sdio->head == sdio->tail - 1) ? sdio->to : PAGE_SIZE; in do_direct_IO()
|
D | fs_context.c | 392 sizeof(log->tail) != sizeof(u8)); in logfc() 393 if ((u8)(log->head - log->tail) == logsize) { in logfc() 397 log->tail++; in logfc()
|
D | buffer.c | 894 struct buffer_head *bh, *tail; in link_dev_buffers() local 898 tail = bh; in link_dev_buffers() 901 tail->b_this_page = head; in link_dev_buffers() 1590 struct buffer_head *bh, *head, *tail; in create_empty_buffers() local 1596 tail = bh; in create_empty_buffers() 1599 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 | 41 int tail; member 108 if (rdir->tail == rdir->head) { in v9fs_dir_readdir() 120 rdir->tail = n; in v9fs_dir_readdir() 122 while (rdir->head < rdir->tail) { in v9fs_dir_readdir() 124 rdir->tail - rdir->head, &st); in v9fs_dir_readdir() 166 if (rdir->tail == rdir->head) { in v9fs_dir_readdir_dotl() 173 rdir->tail = err; in v9fs_dir_readdir_dotl() 176 while (rdir->head < rdir->tail) { in v9fs_dir_readdir_dotl() 179 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/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/gfs2/ |
D | log.c | 561 unsigned int tail; in current_tail() local 566 tail = sdp->sd_log_head; in current_tail() 570 tail = tr->tr_first; in current_tail() 575 return tail; in current_tail() 760 u64 seq, u32 tail, u32 lblock, u32 flags, in gfs2_write_log_header() argument 785 lh->lh_tail = cpu_to_be32(tail); in gfs2_write_log_header() 841 unsigned int tail; in log_write_header() local 846 tail = current_tail(sdp); in log_write_header() 853 sdp->sd_log_idle = (tail == sdp->sd_log_flush_head); in log_write_header() 854 gfs2_write_log_header(sdp, sdp->sd_jdesc, sdp->sd_log_sequence++, tail, in log_write_header() [all …]
|
D | log.h | 70 u64 seq, u32 tail, u32 lblock, u32 flags,
|
/fs/ext4/ |
D | fast_commit.c | 673 struct ext4_fc_tail tail; in ext4_fc_write_tail() local 681 dst = ext4_fc_reserve_space(sb, sizeof(tl) + sizeof(tail), &crc); in ext4_fc_write_tail() 693 tail.fc_tid = cpu_to_le32(sbi->s_journal->j_running_transaction->t_tid); in ext4_fc_write_tail() 694 ext4_fc_memcpy(sb, dst, &tail.fc_tid, sizeof(tail.fc_tid), &crc); in ext4_fc_write_tail() 695 dst += sizeof(tail.fc_tid); in ext4_fc_write_tail() 696 tail.fc_crc = cpu_to_le32(crc); in ext4_fc_write_tail() 697 ext4_fc_memcpy(sb, dst, &tail.fc_crc, sizeof(tail.fc_crc), NULL); in ext4_fc_write_tail() 698 dst += sizeof(tail.fc_crc); in ext4_fc_write_tail() 1942 struct ext4_fc_tail tail; in ext4_fc_replay_scan() local 2000 memcpy(&tail, val, sizeof(tail)); in ext4_fc_replay_scan() [all …]
|
/fs/nfsd/ |
D | nfs3xdr.c | 405 struct kvec *tail = rqstp->rq_arg.tail; in nfs3svc_decode_writeargs() local 428 dlen = head->iov_len + rqstp->rq_arg.page_len + tail->iov_len - hdr; in nfs3svc_decode_writeargs() 507 rqstp->rq_arg.tail[0].iov_len; in nfs3svc_decode_symlinkargs() 719 rqstp->rq_res.tail[0].iov_base = p; in nfs3svc_encode_readlinkres() 721 rqstp->rq_res.tail[0].iov_len = 4 - (resp->len&3); in nfs3svc_encode_readlinkres() 745 rqstp->rq_res.tail[0].iov_base = p; in nfs3svc_encode_readres() 747 rqstp->rq_res.tail[0].iov_len = 4 - (resp->count & 3); in nfs3svc_encode_readres() 829 rqstp->rq_res.tail[0].iov_base = p; in nfs3svc_encode_readdirres() 832 rqstp->rq_res.tail[0].iov_len = 2<<2; in nfs3svc_encode_readdirres()
|
D | nfsxdr.c | 395 p = rqstp->rq_arg.tail[0].iov_base; in nfssvc_decode_symlinkargs() 482 rqstp->rq_res.tail[0].iov_base = p; in nfssvc_encode_readlinkres() 484 rqstp->rq_res.tail[0].iov_len = 4 - (resp->len&3); in nfssvc_encode_readlinkres() 506 rqstp->rq_res.tail[0].iov_base = p; in nfssvc_encode_readres() 508 rqstp->rq_res.tail[0].iov_len = 4 - (resp->count&3); in nfssvc_encode_readres()
|
D | nfs4xdr.c | 167 struct kvec *vec = &argp->rqstp->rq_arg.tail[0]; in read_buf() 169 if (!argp->tail) { in read_buf() 170 argp->tail = true; in read_buf() 3804 buf->tail[0].iov_base = xdr->p; in nfsd4_encode_splice_read() 3805 buf->tail[0].iov_len = 0; in nfsd4_encode_splice_read() 3806 xdr->iov = buf->tail; in nfsd4_encode_splice_read() 3812 buf->tail[0].iov_base += maxcount&3; in nfsd4_encode_splice_read() 3813 buf->tail[0].iov_len = pad; in nfsd4_encode_splice_read() 5318 args->tail = false; in nfs4svc_decode_compoundargs() 5334 buf->tail[0].iov_len); in nfs4svc_encode_compoundres()
|
/fs/jbd2/ |
D | recovery.c | 175 struct jbd2_journal_block_tail *tail; in jbd2_descriptor_block_csum_verify() local 182 tail = (struct jbd2_journal_block_tail *)(buf + j->j_blocksize - in jbd2_descriptor_block_csum_verify() 184 provided = tail->t_checksum; in jbd2_descriptor_block_csum_verify() 185 tail->t_checksum = 0; in jbd2_descriptor_block_csum_verify() 187 tail->t_checksum = provided; in jbd2_descriptor_block_csum_verify()
|
D | journal.c | 1048 struct jbd2_journal_block_tail *tail; in jbd2_descriptor_block_csum_set() local 1054 tail = (struct jbd2_journal_block_tail *)(bh->b_data + j->j_blocksize - in jbd2_descriptor_block_csum_set() 1056 tail->t_checksum = 0; in jbd2_descriptor_block_csum_set() 1058 tail->t_checksum = cpu_to_be32(csum); in jbd2_descriptor_block_csum_set()
|
/fs/jfs/ |
D | jfs_logmgr.c | 2026 struct lbuf *tail; in lbmWrite() local 2048 tail = log->wqueue; in lbmWrite() 2053 if (tail == NULL) { in lbmWrite() 2058 bp->l_wqnext = tail->l_wqnext; in lbmWrite() 2059 tail->l_wqnext = bp; in lbmWrite() 2062 tail = bp; in lbmWrite() 2066 if ((bp != tail->l_wqnext) || !(flag & lbmWRITE)) { in lbmWrite() 2183 struct lbuf *nextbp, *tail; in lbmIODone() local 2243 tail = log->wqueue; in lbmIODone() 2246 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() 1834 struct read_log_state *head, *tail; in incfs_collect_logged_reads() local 1838 tail = &log->rl_tail; in incfs_collect_logged_reads() 1849 if (state->current_record_no < tail->current_record_no) { in incfs_collect_logged_reads() 1853 (u32)tail->next_offset, (u32)tail->current_pass_no); in incfs_collect_logged_reads() 1855 *state = *tail; in incfs_collect_logged_reads()
|
/fs/fuse/ |
D | dev.c | 1415 if (pipe_occupancy(pipe->head, pipe->tail) + cs.nr_segs > pipe->max_usage) { in fuse_dev_splice_read() 2008 unsigned int head, tail, mask, count; in fuse_dev_splice_write() local 2024 tail = pipe->tail; in fuse_dev_splice_write() 2026 count = head - tail; in fuse_dev_splice_write() 2036 for (idx = tail; idx != head && rem < len; idx++) in fuse_dev_splice_write() 2048 if (WARN_ON(nbuf >= count || tail == head)) in fuse_dev_splice_write() 2051 ibuf = &pipe->bufs[tail & mask]; in fuse_dev_splice_write() 2057 tail++; in fuse_dev_splice_write() 2058 pipe->tail = tail; in fuse_dev_splice_write()
|
/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 | 1727 struct buffer_head *tail; in mark_ntfs_record_dirty() local 1731 tail = bh; in mark_ntfs_record_dirty() 1734 tail->b_this_page = head; in mark_ntfs_record_dirty()
|