Loading fs/cifs/inode.c +4 −0 Original line number Original line Diff line number Diff line Loading @@ -777,8 +777,10 @@ cifs_iget(struct super_block *sb, struct cifs_fattr *fattr) inode->i_flags |= S_NOATIME | S_NOCMTIME; inode->i_flags |= S_NOATIME | S_NOCMTIME; if (inode->i_state & I_NEW) { if (inode->i_state & I_NEW) { inode->i_ino = hash; inode->i_ino = hash; #ifdef CONFIG_CIFS_FSCACHE /* initialize per-inode cache cookie pointer */ /* initialize per-inode cache cookie pointer */ CIFS_I(inode)->fscache = NULL; CIFS_I(inode)->fscache = NULL; #endif unlock_new_inode(inode); unlock_new_inode(inode); } } } } Loading Loading @@ -810,8 +812,10 @@ struct inode *cifs_root_iget(struct super_block *sb, unsigned long ino) if (!inode) if (!inode) return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM); #ifdef CONFIG_CIFS_FSCACHE /* populate tcon->resource_id */ /* populate tcon->resource_id */ cifs_sb->tcon->resource_id = CIFS_I(inode)->uniqueid; cifs_sb->tcon->resource_id = CIFS_I(inode)->uniqueid; #endif if (rc && cifs_sb->tcon->ipc) { if (rc && cifs_sb->tcon->ipc) { cFYI(1, "ipc connection - fake read inode"); cFYI(1, "ipc connection - fake read inode"); Loading Loading
fs/cifs/inode.c +4 −0 Original line number Original line Diff line number Diff line Loading @@ -777,8 +777,10 @@ cifs_iget(struct super_block *sb, struct cifs_fattr *fattr) inode->i_flags |= S_NOATIME | S_NOCMTIME; inode->i_flags |= S_NOATIME | S_NOCMTIME; if (inode->i_state & I_NEW) { if (inode->i_state & I_NEW) { inode->i_ino = hash; inode->i_ino = hash; #ifdef CONFIG_CIFS_FSCACHE /* initialize per-inode cache cookie pointer */ /* initialize per-inode cache cookie pointer */ CIFS_I(inode)->fscache = NULL; CIFS_I(inode)->fscache = NULL; #endif unlock_new_inode(inode); unlock_new_inode(inode); } } } } Loading Loading @@ -810,8 +812,10 @@ struct inode *cifs_root_iget(struct super_block *sb, unsigned long ino) if (!inode) if (!inode) return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM); #ifdef CONFIG_CIFS_FSCACHE /* populate tcon->resource_id */ /* populate tcon->resource_id */ cifs_sb->tcon->resource_id = CIFS_I(inode)->uniqueid; cifs_sb->tcon->resource_id = CIFS_I(inode)->uniqueid; #endif if (rc && cifs_sb->tcon->ipc) { if (rc && cifs_sb->tcon->ipc) { cFYI(1, "ipc connection - fake read inode"); cFYI(1, "ipc connection - fake read inode"); Loading