浏览代码

[CIFS] Fix build problem

Signed-off-by: Steve French <sfrench@us.ibm.com>
Steve French 17 年之前
父节点
当前提交
bc5b6e24a1
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      fs/cifs/inode.c

+ 4 - 0
fs/cifs/inode.c

@@ -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;
 		}