]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - security/integrity/ima/ima_iint.c
IMA: drop the inode opencount since it isn't needed for operation
[net-next-2.6.git] / security / integrity / ima / ima_iint.c
index 8395f0f5e9b918925839ff4293361b3e363793e8..8e64313ed182c18898305225bad72c3b1c55eaa5 100644 (file)
@@ -134,11 +134,6 @@ void iint_free(struct kref *kref)
                       iint->writecount);
                iint->writecount = 0;
        }
-       if (iint->opencount != 0) {
-               printk(KERN_INFO "%s: opencount: %ld\n", __func__,
-                      iint->opencount);
-               iint->opencount = 0;
-       }
        kref_init(&iint->refcount);
        kmem_cache_free(iint_cache, iint);
 }
@@ -172,7 +167,6 @@ static void init_once(void *foo)
        mutex_init(&iint->mutex);
        iint->readcount = 0;
        iint->writecount = 0;
-       iint->opencount = 0;
        kref_init(&iint->refcount);
 }