[CIFS] Fix build problem
authorSteve French <sfrench@us.ibm.com>
Tue, 11 Mar 2008 21:07:48 +0000 (21:07 +0000)
committerSteve French <sfrench@us.ibm.com>
Tue, 11 Mar 2008 21:07:48 +0000 (21:07 +0000)
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/inode.c

index 4f0ee67eb9540e51d2e980637595461827259758..af422625cee6eb3c286c7f297c5d223c19b218a3 100644 (file)
@@ -57,9 +57,13 @@ static void cifs_set_ops(struct inode *inode, const bool is_dfs_referral)
                        inode->i_data.a_ops = &cifs_addr_ops;
                break;
        case S_IFDIR:
+#ifdef CONFIG_CIFS_DFS_UPCALL
                if (is_dfs_referral) {
                        inode->i_op = &cifs_dfs_referral_inode_operations;
                } else {
+#else /* NO DFS support, treat as a directory */
+               {
+#endif
                        inode->i_op = &cifs_dir_inode_ops;
                        inode->i_fop = &cifs_dir_ops;
                }