cifs: remove cifsInodeInfo->inUse counter
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>
This commit is contained in:
parent
0b8f18e358
commit
aeaaf253c4
2 changed files with 0 additions and 2 deletions
|
@ -308,7 +308,6 @@ cifs_alloc_inode(struct super_block *sb)
|
||||||
if (!cifs_inode)
|
if (!cifs_inode)
|
||||||
return NULL;
|
return NULL;
|
||||||
cifs_inode->cifsAttrs = 0x20; /* default */
|
cifs_inode->cifsAttrs = 0x20; /* default */
|
||||||
atomic_set(&cifs_inode->inUse, 0);
|
|
||||||
cifs_inode->time = 0;
|
cifs_inode->time = 0;
|
||||||
cifs_inode->write_behind_rc = 0;
|
cifs_inode->write_behind_rc = 0;
|
||||||
/* Until the file is open and we have gotten oplock
|
/* Until the file is open and we have gotten oplock
|
||||||
|
|
|
@ -364,7 +364,6 @@ struct cifsInodeInfo {
|
||||||
struct list_head openFileList;
|
struct list_head openFileList;
|
||||||
int write_behind_rc;
|
int write_behind_rc;
|
||||||
__u32 cifsAttrs; /* e.g. DOS archive bit, sparse, compressed, system */
|
__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 */
|
unsigned long time; /* jiffies of last update/check of inode */
|
||||||
bool clientCanCacheRead:1; /* read oplock */
|
bool clientCanCacheRead:1; /* read oplock */
|
||||||
bool clientCanCacheAll:1; /* read and writebehind oplock */
|
bool clientCanCacheAll:1; /* read and writebehind oplock */
|
||||||
|
|
Loading…
Reference in a new issue