cifs: remove cifsInodeInfo->inUse counter
authorJeff Layton <jlayton@redhat.com>
Thu, 9 Jul 2009 05:46:39 +0000 (01:46 -0400)
committerSteve French <sfrench@us.ibm.com>
Thu, 9 Jul 2009 23:06:00 +0000 (23:06 +0000)
cifs: remove cifsInodeInfo->inUse counter

It was purported to be a refcounter of some sort, but was never
used that way. It never served any purpose that wasn't served equally well
by the I_NEW flag.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h

index 9f669f982c4d4fe74b4640b221f04d9bd183b597..44f30504b82d1bbe511da6d4def1342067359deb 100644 (file)
@@ -308,7 +308,6 @@ cifs_alloc_inode(struct super_block *sb)
        if (!cifs_inode)
                return NULL;
        cifs_inode->cifsAttrs = 0x20;   /* default */
-       atomic_set(&cifs_inode->inUse, 0);
        cifs_inode->time = 0;
        cifs_inode->write_behind_rc = 0;
        /* Until the file is open and we have gotten oplock
index 8bcf5a4bcded3bf77c561f5d18d3b10025641e08..63f6cdfa56387b355f0fa8f5b7ff0ae7a00c9ab0 100644 (file)
@@ -364,7 +364,6 @@ struct cifsInodeInfo {
        struct list_head openFileList;
        int write_behind_rc;
        __u32 cifsAttrs; /* e.g. DOS archive bit, sparse, compressed, system */
-       atomic_t inUse;  /* num concurrent users (local openers cifs) of file*/
        unsigned long time;     /* jiffies of last update/check of inode */
        bool clientCanCacheRead:1;      /* read oplock */
        bool clientCanCacheAll:1;       /* read and writebehind oplock */