aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-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 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)
57 inode->i_data.a_ops = &cifs_addr_ops; 57 inode->i_data.a_ops = &cifs_addr_ops;
58 break; 58 break;
59 case S_IFDIR: 59 case S_IFDIR:
60#ifdef CONFIG_CIFS_DFS_UPCALL
60 if (is_dfs_referral) { 61 if (is_dfs_referral) {
61 inode->i_op = &cifs_dfs_referral_inode_operations; 62 inode->i_op = &cifs_dfs_referral_inode_operations;
62 } else { 63 } else {
64#else /* NO DFS support, treat as a directory */
65 {
66#endif
63 inode->i_op = &cifs_dir_inode_ops; 67 inode->i_op = &cifs_dir_inode_ops;
64 inode->i_fop = &cifs_dir_ops; 68 inode->i_fop = &cifs_dir_ops;
65 } 69 }