Home
last modified time | relevance | path

Searched refs:tail (Results 1 – 25 of 35) sorted by relevance

12

/fs/
Dsplice.c186 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 …]
Dpipe.c223 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 …]
Daio.c61 unsigned tail; member
158 unsigned tail; member
550 ring->head = ring->tail = 0; in aio_setup_ring()
968 unsigned tail) in refill_reqs_available() argument
974 if (head <= tail) in refill_reqs_available()
975 events_in_ring = tail - head; in refill_reqs_available()
977 events_in_ring = ctx->nr_events - (head - tail); in refill_reqs_available()
1016 refill_reqs_available(ctx, head, ctx->tail); in user_refill_reqs_available()
1104 unsigned tail, pos, head; in aio_complete() local
1114 tail = ctx->tail; in aio_complete()
[all …]
Dfsopen.c39 if (log->head == log->tail) { in fscontext_read()
44 index = log->tail & (logsize - 1); in fscontext_read()
49 log->tail++; in fscontext_read()
Ddirect-io.c113 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()
457 while (sdio->head < sdio->tail) in dio_cleanup()
944 to = (sdio->head == sdio->tail - 1) ? sdio->to : PAGE_SIZE; in do_direct_IO()
Dfs_context.c415 sizeof(log->tail) != sizeof(u8)); in logfc()
416 if ((u8)(log->head - log->tail) == logsize) { in logfc()
420 log->tail++; in logfc()
Dbuffer.c911 struct buffer_head *bh, *tail; in link_dev_buffers() local
915 tail = bh; in link_dev_buffers()
918 tail->b_this_page = head; in link_dev_buffers()
1611 struct buffer_head *bh, *head, *tail; in create_empty_buffers() local
1617 tail = bh; in create_empty_buffers()
1620 tail->b_this_page = head; in create_empty_buffers()
/fs/affs/
Dinode.c22 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 …]
Dsuper.c37 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/
Dvfs_dir.c41 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/
Dtail_conversion.c214 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/
Drecord.c439 size_t tail; in mi_insert_attr() local
470 tail = 8; /* Not used, just to suppress warning. */ in mi_insert_attr()
473 tail = used - PtrOffset(rec, attr); in mi_insert_attr()
478 memmove(Add2Ptr(attr, asize), attr, tail); in mi_insert_attr()
544 int tail = (int)(used - aoff - asize); in mi_resize_attr() local
548 if (tail < 0 || aoff >= used) in mi_resize_attr()
563 memmove(next + dsize, next, tail); in mi_resize_attr()
572 memmove(next - dsize, next, tail); in mi_resize_attr()
601 u32 tail = used - aoff - asize; in mi_pack_runs() local
605 memmove(next + dsize, next, tail); in mi_pack_runs()
[all …]
Dbitmap.c727 u32 tail, op; in wnd_set_free() local
733 tail = wbits - wbit; in wnd_set_free()
734 op = min_t(u32, tail, bits); in wnd_set_free()
780 u32 tail, op; in wnd_set_used() local
786 tail = wbits - wbit; in wnd_set_used()
787 op = min_t(u32, tail, bits); in wnd_set_used()
831 u32 tail, op; in wnd_is_free_hlp() local
836 tail = wbits - wbit; in wnd_is_free_hlp()
837 op = min_t(u32, tail, bits); in wnd_is_free_hlp()
923 u32 tail, op; in wnd_is_used() local
[all …]
Dfslog.c1411 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 …]
Dfile.c1034 size_t cp, tail = PAGE_SIZE - off; in ntfs_compress_write() local
1038 min(tail, bytes), from); in ntfs_compress_write()
1046 if (cp < tail) { in ntfs_compress_write()
/fs/adfs/
Ddir_f.c127 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/
Dlzx_decompress.c184 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/
Dfast_commit.c706 struct ext4_fc_tail tail; in ext4_fc_write_tail() local
714 dst = ext4_fc_reserve_space(sb, EXT4_FC_TAG_BASE_LEN + sizeof(tail), &crc); in ext4_fc_write_tail()
726 tail.fc_tid = cpu_to_le32(sbi->s_journal->j_running_transaction->t_tid); in ext4_fc_write_tail()
727 ext4_fc_memcpy(sb, dst, &tail.fc_tid, sizeof(tail.fc_tid), &crc); in ext4_fc_write_tail()
728 dst += sizeof(tail.fc_tid); in ext4_fc_write_tail()
729 tail.fc_crc = cpu_to_le32(crc); in ext4_fc_write_tail()
730 ext4_fc_memcpy(sb, dst, &tail.fc_crc, sizeof(tail.fc_crc), NULL); in ext4_fc_write_tail()
731 dst += sizeof(tail.fc_crc); in ext4_fc_write_tail()
1984 struct ext4_fc_tail tail; in ext4_fc_replay_scan() local
2049 memcpy(&tail, val, sizeof(tail)); in ext4_fc_replay_scan()
[all …]
/fs/jbd2/
Drecovery.c175 struct jbd2_journal_block_tail *tail; in jbd2_descriptor_block_csum_verify() local
182 tail = (struct jbd2_journal_block_tail *)((char *)buf + 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()
/fs/jfs/
Djfs_logmgr.c2026 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/
Ddata_mgmt.c554 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/
Ddev.c1411 if (pipe_occupancy(pipe->head, pipe->tail) + cs.nr_segs > pipe->max_usage) { in fuse_dev_splice_read()
2004 unsigned int head, tail, mask, count; in fuse_dev_splice_write() local
2020 tail = pipe->tail; in fuse_dev_splice_write()
2022 count = head - tail; in fuse_dev_splice_write()
2032 for (idx = tail; idx != head && rem < len; idx++) in fuse_dev_splice_write()
2044 if (WARN_ON(nbuf >= count || tail == head)) in fuse_dev_splice_write()
2047 ibuf = &pipe->bufs[tail & mask]; in fuse_dev_splice_write()
2053 tail++; in fuse_dev_splice_write()
2054 pipe->tail = tail; in fuse_dev_splice_write()
/fs/gfs2/
Dlog.h84 u64 seq, u32 tail, u32 lblock, u32 flags,
/fs/ntfs/
Drunlist.c373 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()
/fs/nfsd/
Dnfs3xdr.c683 struct kvec *tail = rqstp->rq_arg.tail; in nfs3svc_decode_symlinkargs() local
694 remaining = head->iov_len + rqstp->rq_arg.page_len + tail->iov_len; in nfs3svc_decode_symlinkargs()

12