ia64/linux-2.6.18-xen.hg

diff drivers/xen/blkback/vbd.c @ 869:271d9b9bee40

xen: miscellaneous cleanup

- add two missing unwind annotations
- mark remaining struct file_operations instances const
- use get_capacity() instead of raw access to the capacity field
- use assert_spin_locked() instead of BUG_ON(!spin_is_locked())
- use clear_tsk_thread_flag() instead of clear_ti_thread_flag()
- remove dead variable cpu_state

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu May 14 10:08:10 2009 +0100 (2009-05-14)
parents e5f0712d7520
children
line diff
     1.1 --- a/drivers/xen/blkback/vbd.c	Tue May 05 13:32:55 2009 +0100
     1.2 +++ b/drivers/xen/blkback/vbd.c	Thu May 14 10:08:10 2009 +0100
     1.3 @@ -33,7 +33,7 @@
     1.4  #include "common.h"
     1.5  
     1.6  #define vbd_sz(_v)   ((_v)->bdev->bd_part ?				\
     1.7 -	(_v)->bdev->bd_part->nr_sects : (_v)->bdev->bd_disk->capacity)
     1.8 +	(_v)->bdev->bd_part->nr_sects : get_capacity((_v)->bdev->bd_disk))
     1.9  
    1.10  unsigned long long vbd_size(struct vbd *vbd)
    1.11  {