Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 49103
b: refs/heads/master
c: 930e99b
h: refs/heads/master
i:
  49101: f5b1015
  49099: 5fdb606
  49095: 355a469
  49087: cf8ca3f
v: v3
  • Loading branch information
FUJITA Tomonori authored and James Bottomley committed Feb 16, 2007
1 parent ff91886 commit 530dedd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8f3334edae93f8b664417f4140d4d9dc9a003fe4
refs/heads/master: 930e99bd1320d78c7d8866595e81b8fc7dc8739b
8 changes: 8 additions & 0 deletions trunk/drivers/scsi/scsi_tgt_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@

#include "scsi_tgt_priv.h"

#if TGT_RING_SIZE < PAGE_SIZE
# define TGT_RING_SIZE PAGE_SIZE
#endif

#define TGT_RING_PAGES (TGT_RING_SIZE >> PAGE_SHIFT)
#define TGT_EVENT_PER_PAGE (PAGE_SIZE / sizeof(struct tgt_event))
#define TGT_MAX_EVENTS (TGT_EVENT_PER_PAGE * TGT_RING_PAGES)

struct tgt_ring {
u32 tr_idx;
unsigned long tr_pages[TGT_RING_PAGES];
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/scsi/scsi_tgt_if.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,5 @@ struct tgt_event {
} __attribute__ ((aligned (sizeof(uint64_t))));

#define TGT_RING_SIZE (1UL << 16)
#define TGT_RING_PAGES (TGT_RING_SIZE >> PAGE_SHIFT)
#define TGT_EVENT_PER_PAGE (PAGE_SIZE / sizeof(struct tgt_event))
#define TGT_MAX_EVENTS (TGT_EVENT_PER_PAGE * TGT_RING_PAGES)

#endif

0 comments on commit 530dedd

Please sign in to comment.