search for: hash_list

Displaying 7 results from an estimated 7 matches for "hash_list".

Did you mean: hash_link
2005 Sep 09
7
[PATCH 0/6] jbd cleanup
The following 6 patches cleanup the jbd code and kill about 200 lines. First of 4 patches can apply to 2.6.13-git8 and 2.6.13-mm2. The rest of them can apply to 2.6.13-mm2. fs/jbd/checkpoint.c | 179 +++++++++++-------------------------------- fs/jbd/commit.c | 101 ++++++++++-------------- fs/jbd/journal.c | 11 +- fs/jbd/revoke.c | 158
2005 Jun 14
2
[2.6 patch] fs/jbd/: possible cleanups
...+0200 @@ -116,7 +116,8 @@ (block << (hash_shift - 12))) & (table->hash_size - 1); } -int insert_revoke_hash(journal_t *journal, unsigned long blocknr, tid_t seq) +static int insert_revoke_hash(journal_t *journal, unsigned long blocknr, + tid_t seq) { struct list_head *hash_list; struct jbd_revoke_record_s *record;
2005 Jul 19
1
[2.6 patch] fs/jbd/: cleanups
...+0200 @@ -116,7 +116,8 @@ (block << (hash_shift - 12))) & (table->hash_size - 1); } -int insert_revoke_hash(journal_t *journal, unsigned long blocknr, tid_t seq) +static int insert_revoke_hash(journal_t *journal, unsigned long blocknr, + tid_t seq) { struct list_head *hash_list; struct jbd_revoke_record_s *record; --- linux-2.6.13-rc3-mm1-full/fs/jbd/journal.c.old 2005-07-19 15:53:16.000000000 +0200 +++ linux-2.6.13-rc3-mm1-full/fs/jbd/journal.c 2005-07-19 15:53:39.000000000 +0200 @@ -65,7 +65,6 @@ EXPORT_SYMBOL(journal_set_features); EXPORT_SYMBOL(journal_create); E...
2007 Jan 02
0
[PATCH 1/4] add scsi-target and IO_CMD_EPOLL_WAIT patches
...++ * and James''s work struct code is in ++ */ ++struct scsi_tgt_cmd { ++ /* TODO replace work with James b''s code */ ++ struct work_struct work; ++ /* TODO replace the lists with a large bio */ ++ struct bio_list xfer_done_list; ++ struct bio_list xfer_list; ++ ++ struct list_head hash_list; ++ struct request *rq; ++ u64 tag; ++ ++ void *buffer; ++ unsigned bufflen; ++}; ++ ++#define TGT_HASH_ORDER 4 ++#define cmd_hashfn(tag) hash_long((unsigned long) (tag), TGT_HASH_ORDER) ++ ++struct scsi_tgt_queuedata { ++ struct Scsi_Host *shost; ++ struct list_head cmd_hash[1 << TGT_HASH_OR...
2005 Apr 22
2
[2.6 patch] fs/jbd/: possible cleanups
...+0200 @@ -116,7 +116,8 @@ (block << (hash_shift - 12))) & (table->hash_size - 1); } -int insert_revoke_hash(journal_t *journal, unsigned long blocknr, tid_t seq) +static int insert_revoke_hash(journal_t *journal, unsigned long blocknr, + tid_t seq) { struct list_head *hash_list; struct jbd_revoke_record_s *record;
2012 Apr 20
1
[PATCH] multiqueue: a hodge podge of things
...v_rqhash_add(q, rq); + elv_rqhash_add(ctx, rq); } -static struct request *elv_rqhash_find(struct request_queue *q, sector_t offset) +static struct request *elv_rqhash_find(struct blk_queue_ctx *ctx, + sector_t offset) { - struct elevator_queue *e = q->elevator; - struct hlist_head *hash_list = &e->hash[ELV_HASH_FN(offset)]; + struct hlist_head *hash_list = &ctx->hash[ELV_HASH_FN(offset)]; struct hlist_node *entry, *next; struct request *rq; + lockdep_assert_held(&ctx->lock); + hlist_for_each_entry_safe(rq, entry, next, hash_list, hash) { BUG_ON(!ELV_ON_H...
2012 Apr 20
1
[PATCH] multiqueue: a hodge podge of things
...v_rqhash_add(q, rq); + elv_rqhash_add(ctx, rq); } -static struct request *elv_rqhash_find(struct request_queue *q, sector_t offset) +static struct request *elv_rqhash_find(struct blk_queue_ctx *ctx, + sector_t offset) { - struct elevator_queue *e = q->elevator; - struct hlist_head *hash_list = &e->hash[ELV_HASH_FN(offset)]; + struct hlist_head *hash_list = &ctx->hash[ELV_HASH_FN(offset)]; struct hlist_node *entry, *next; struct request *rq; + lockdep_assert_held(&ctx->lock); + hlist_for_each_entry_safe(rq, entry, next, hash_list, hash) { BUG_ON(!ELV_ON_H...