diff options
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 4ed9c13fff55..d3773e57acf9 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -309,6 +309,13 @@ CIFS_SB(struct super_block *sb) | |||
309 | return sb->s_fs_info; | 309 | return sb->s_fs_info; |
310 | } | 310 | } |
311 | 311 | ||
312 | static inline const char CIFS_DIR_SEP(const struct cifs_sb_info *cifs_sb) | ||
313 | { | ||
314 | if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS) | ||
315 | return '/'; | ||
316 | else | ||
317 | return '\\'; | ||
318 | } | ||
312 | 319 | ||
313 | /* one of these for every pending CIFS request to the server */ | 320 | /* one of these for every pending CIFS request to the server */ |
314 | struct mid_q_entry { | 321 | struct mid_q_entry { |