Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252739
b: refs/heads/master
c: 091c759
h: refs/heads/master
i:
  252737: 547dc03
  252735: c729702
v: v3
  • Loading branch information
Mike Frysinger committed May 28, 2011
1 parent a12d61b commit 5376f07
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 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: 5be7ef002469eaf757065ee16b4100c6d3ead1cc
refs/heads/master: 091c75985e2f3d1b60eb25d577f04923c1b8e022
6 changes: 3 additions & 3 deletions trunk/arch/blackfin/include/asm/bfin_serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ struct bfin_uart_regs {
#undef __BFP

#ifndef port_membase
# define port_membase(p) (((struct bfin_serial_port *)(p))->port.membase)
# define port_membase(p) 0
#endif

#define UART_GET_CHAR(p) bfin_read16(port_membase(p) + OFFSET_RBR)
Expand Down Expand Up @@ -235,10 +235,10 @@ struct bfin_uart_regs {
#define UART_SET_DLAB(p) do { UART_PUT_LCR(p, UART_GET_LCR(p) | DLAB); SSYNC(); } while (0)

#ifndef put_lsr_cache
# define put_lsr_cache(p, v) (((struct bfin_serial_port *)(p))->lsr = (v))
# define put_lsr_cache(p, v)
#endif
#ifndef get_lsr_cache
# define get_lsr_cache(p) (((struct bfin_serial_port *)(p))->lsr)
# define get_lsr_cache(p) 0
#endif

/* The hardware clears the LSR bits upon read, so we need to cache
Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/scsi/scsi_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,11 @@ static ssize_t proc_scsi_write(struct file *file, const char __user *buf,
return err;
}

/**
* proc_scsi_show - show contents of /proc/scsi/scsi (attached devices)
* @s: output goes here
* @p: not used
*/
static int always_match(struct device *dev, void *data)
{
return 1;
Expand Down
17 changes: 7 additions & 10 deletions trunk/mm/rmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,6 @@ struct anon_vma *page_get_anon_vma(struct page *page)
struct anon_vma *page_lock_anon_vma(struct page *page)
{
struct anon_vma *anon_vma = NULL;
struct anon_vma *root_anon_vma;
unsigned long anon_mapping;

rcu_read_lock();
Expand All @@ -416,15 +415,13 @@ struct anon_vma *page_lock_anon_vma(struct page *page)
goto out;

anon_vma = (struct anon_vma *) (anon_mapping - PAGE_MAPPING_ANON);
root_anon_vma = ACCESS_ONCE(anon_vma->root);
if (mutex_trylock(&root_anon_vma->mutex)) {
if (mutex_trylock(&anon_vma->root->mutex)) {
/*
* If the page is still mapped, then this anon_vma is still
* its anon_vma, and holding the mutex ensures that it will
* not go away, see __put_anon_vma().
* If we observe a !0 refcount, then holding the lock ensures
* the anon_vma will not go away, see __put_anon_vma().
*/
if (!page_mapped(page)) {
mutex_unlock(&root_anon_vma->mutex);
if (!atomic_read(&anon_vma->refcount)) {
anon_vma_unlock(anon_vma);
anon_vma = NULL;
}
goto out;
Expand Down Expand Up @@ -1017,7 +1014,7 @@ void do_page_add_anon_rmap(struct page *page,
return;

VM_BUG_ON(!PageLocked(page));
/* address might be in next vma when migration races vma_adjust */
VM_BUG_ON(address < vma->vm_start || address >= vma->vm_end);
if (first)
__page_set_anon_rmap(page, vma, address, exclusive);
else
Expand Down Expand Up @@ -1712,7 +1709,7 @@ void hugepage_add_anon_rmap(struct page *page,

BUG_ON(!PageLocked(page));
BUG_ON(!anon_vma);
/* address might be in next vma when migration races vma_adjust */
BUG_ON(address < vma->vm_start || address >= vma->vm_end);
first = atomic_inc_and_test(&page->_mapcount);
if (first)
__hugepage_set_anon_rmap(page, vma, address, 0);
Expand Down
2 changes: 1 addition & 1 deletion trunk/mm/shmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1114,8 +1114,8 @@ static int shmem_writepage(struct page *page, struct writeback_control *wbc)
delete_from_page_cache(page);
shmem_swp_set(info, entry, swap.val);
shmem_swp_unmap(entry);
swap_shmem_alloc(swap);
spin_unlock(&info->lock);
swap_shmem_alloc(swap);
BUG_ON(page_mapped(page));
swap_writepage(page, wbc);
return 0;
Expand Down

0 comments on commit 5376f07

Please sign in to comment.