summaryrefslogtreecommitdiffstats
path: root/fs/ceph/caps.c
diff options
context:
space:
mode:
authorDan Carpenter2010-05-07 10:27:14 +0200
committerSage Weil2010-05-18 00:25:32 +0200
commita5ee751c15016d0deee0d651e42a3b163ea73ade (patch)
treeeaf993df4c0c8d020ca16a778b34b24f8cb7f571 /fs/ceph/caps.c
parentceph: clean up cap release loop vs spinlock (diff)
downloadkernel-qcow2-linux-a5ee751c15016d0deee0d651e42a3b163ea73ade.tar.gz
kernel-qcow2-linux-a5ee751c15016d0deee0d651e42a3b163ea73ade.tar.xz
kernel-qcow2-linux-a5ee751c15016d0deee0d651e42a3b163ea73ade.zip
ceph: cleanup: remove unused assignement
We don't ever use "dirty" so we can remove it. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/caps.c')
-rw-r--r--fs/ceph/caps.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c
index 74c74842c860..0e85d3c80790 100644
--- a/fs/ceph/caps.c
+++ b/fs/ceph/caps.c
@@ -1718,10 +1718,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) {