aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2010-07-16 00:31:02 -0400
committerSteve French <sfrench@us.ibm.com>2010-08-02 08:40:38 -0400
commit0ccd48025fe64cf01782ba3c7037654d25bd1950 (patch)
treee264b9972c48f90bb247887ab38444be79cd0f73 /fs/cifs
parentd0e6f44e6cc3c7059e8717c452f0999aba507a38 (diff)
[CIFS] Missing ifdef
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/inode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index 5a68b92a0f9..2d9cd2f269e 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -777,8 +777,10 @@ retry_iget5_locked:
777 inode->i_flags |= S_NOATIME | S_NOCMTIME; 777 inode->i_flags |= S_NOATIME | S_NOCMTIME;
778 if (inode->i_state & I_NEW) { 778 if (inode->i_state & I_NEW) {
779 inode->i_ino = hash; 779 inode->i_ino = hash;
780#ifdef CONFIG_CIFS_FSCACHE
780 /* initialize per-inode cache cookie pointer */ 781 /* initialize per-inode cache cookie pointer */
781 CIFS_I(inode)->fscache = NULL; 782 CIFS_I(inode)->fscache = NULL;
783#endif
782 unlock_new_inode(inode); 784 unlock_new_inode(inode);
783 } 785 }
784 } 786 }
@@ -810,8 +812,10 @@ struct inode *cifs_root_iget(struct super_block *sb, unsigned long ino)
810 if (!inode) 812 if (!inode)
811 return ERR_PTR(-ENOMEM); 813 return ERR_PTR(-ENOMEM);
812 814
815#ifdef CONFIG_CIFS_FSCACHE
813 /* populate tcon->resource_id */ 816 /* populate tcon->resource_id */
814 cifs_sb->tcon->resource_id = CIFS_I(inode)->uniqueid; 817 cifs_sb->tcon->resource_id = CIFS_I(inode)->uniqueid;
818#endif
815 819
816 if (rc && cifs_sb->tcon->ipc) { 820 if (rc && cifs_sb->tcon->ipc) {
817 cFYI(1, "ipc connection - fake read inode"); 821 cFYI(1, "ipc connection - fake read inode");