Re: [patch] ceph: cleanup: remove unused assignement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 7 May 2010, Dan Carpenter wrote:
> We don't ever use "dirty" so we can remove it.
> 
> Signed-off-by: Dan Carpenter <error27@xxxxxxxxx>
> 
> diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c
> index 0c16818..a8db1a6 100644
> --- a/fs/ceph/caps.c
> +++ b/fs/ceph/caps.c
> @@ -1711,10 +1711,9 @@ out_unlocked:
>  static int caps_are_flushed(struct inode *inode, unsigned tid)
>  {
>  	struct ceph_inode_info *ci = ceph_inode(inode);
> -	int dirty, i, ret = 1;
> +	int i, ret = 1;
>  
>  	spin_lock(&inode->i_lock);
> -	dirty = __ceph_caps_dirty(ci);
>  	for (i = 0; i < CEPH_CAP_BITS; i++)
>  		if ((ci->i_flushing_caps & (1 << i)) &&
>  		    ci->i_cap_flush_tid[i] <= tid) {

Queued up for the 2.6.35 window.

Thanks!
sage

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux