diff options
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/link.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/link.c b/fs/cifs/link.c index 52f41f9f7def..264ece71bdb2 100644 --- a/fs/cifs/link.c +++ b/fs/cifs/link.c | |||
@@ -185,7 +185,7 @@ format_mf_symlink(u8 *buf, unsigned int buf_len, const char *link_str) | |||
185 | bool | 185 | bool |
186 | couldbe_mf_symlink(const struct cifs_fattr *fattr) | 186 | couldbe_mf_symlink(const struct cifs_fattr *fattr) |
187 | { | 187 | { |
188 | if (!(fattr->cf_mode & S_IFREG)) | 188 | if (!S_ISREG(fattr->cf_mode)) |
189 | /* it's not a symlink */ | 189 | /* it's not a symlink */ |
190 | return false; | 190 | return false; |
191 | 191 | ||