Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72295
b: refs/heads/master
c: de26103
h: refs/heads/master
i:
  72293: 4a81017
  72291: 83c3ebf
  72287: 3acc838
v: v3
  • Loading branch information
Jens Axboe committed Oct 23, 2007
1 parent 5afae40 commit 74d5ff1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0b776eb5426752d4e53354ac89e3710d857e09a7
refs/heads/master: de26103de56a0c482ad21296eae9b06deefc8e62
5 changes: 5 additions & 0 deletions trunk/include/linux/scatterlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ static inline void sg_set_page(struct scatterlist *sg, struct page *page)
{
unsigned long page_link = sg->page_link & 0x3;

/*
* In order for the low bit stealing approach to work, pages
* must be aligned at a 32-bit boundary as a minimum.
*/
BUG_ON((unsigned long) page & 0x03);
#ifdef CONFIG_DEBUG_SG
BUG_ON(sg->sg_magic != SG_MAGIC);
#endif
Expand Down

0 comments on commit 74d5ff1

Please sign in to comment.