Messages in this thread Patch in this message | | | Date | Wed, 4 Aug 1999 15:45:01 -0400 (EDT) | From | Chuck Lever <> | Subject | buffer.c nits |
| |
some very minor issues in fs/buffer.c.
--- linux/fs/buffer.c.orig Wed Aug 4 15:35:51 1999 +++ linux/fs/buffer.c Wed Aug 4 15:39:13 1999 @@ -1148,11 +1148,13 @@ */ no_grow: if (head) { + spin_lock(&unused_list_lock); do { bh = head; head = head->b_this_page; - put_unused_buffer_head(bh); + __put_unused_buffer_head(bh); } while (head); + spin_unlock(&unused_list_lock); /* Wake up any waiters ... */ wake_up(&buffer_wait); @@ -1201,8 +1203,8 @@ PAGE_BUG(page); /* * Allocate async buffer heads pointing to this page, just for I/O. - * They show up in the buffer hash table and are registered in - * page->buffers. + * They don't show up in the buffer hash table, but they *are* + * registered in page->buffers. */ head = create_buffers(page_address(page), size, 1); if (page->buffers) @@ -1858,7 +1860,6 @@ blocks = PAGE_SIZE >> inode->i_sb->s_blocksize_bits; iblock = page->offset >> inode->i_sb->s_blocksize_bits; page->owner = (void *)-1; - head = page->buffers; bh = head; nr = 0; - Chuck Lever -- corporate: <chuckl@netscape.com> personal: <chucklever@netscape.net> or <cel@monkey.org> The Linux Scalability project: http://www.citi.umich.edu/projects/linux-scalability/
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |