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>
This commit is contained in:
parent
0f8605f2bd
commit
a5ee751c15
|
@ -1718,10 +1718,9 @@ out_unlocked:
|
||||||
static int caps_are_flushed(struct inode *inode, unsigned tid)
|
static int caps_are_flushed(struct inode *inode, unsigned tid)
|
||||||
{
|
{
|
||||||
struct ceph_inode_info *ci = ceph_inode(inode);
|
struct ceph_inode_info *ci = ceph_inode(inode);
|
||||||
int dirty, i, ret = 1;
|
int i, ret = 1;
|
||||||
|
|
||||||
spin_lock(&inode->i_lock);
|
spin_lock(&inode->i_lock);
|
||||||
dirty = __ceph_caps_dirty(ci);
|
|
||||||
for (i = 0; i < CEPH_CAP_BITS; i++)
|
for (i = 0; i < CEPH_CAP_BITS; i++)
|
||||||
if ((ci->i_flushing_caps & (1 << i)) &&
|
if ((ci->i_flushing_caps & (1 << i)) &&
|
||||||
ci->i_cap_flush_tid[i] <= tid) {
|
ci->i_cap_flush_tid[i] <= tid) {
|
||||||
|
|
Loading…
Reference in New Issue