From: Steve French Date: Tue, 11 Mar 2008 21:07:48 +0000 (+0000) Subject: [CIFS] Fix build problem X-Git-Tag: firefly_0821_release~21897^2~4 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bc5b6e24a17f90c7d096d857650f4739cc95c941;p=firefly-linux-kernel-4.4.55.git [CIFS] Fix build problem Signed-off-by: Steve French --- diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 4f0ee67eb954..af422625cee6 100644 --- a/fs/cifs/inode.c +++ b/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; }