diff options
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c index 96ca11dea4a2..c83145af4bfc 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -2814,7 +2814,7 @@ no_open: | |||
2814 | } else if (!dentry->d_inode) { | 2814 | } else if (!dentry->d_inode) { |
2815 | goto out; | 2815 | goto out; |
2816 | } else if ((open_flag & O_TRUNC) && | 2816 | } else if ((open_flag & O_TRUNC) && |
2817 | S_ISREG(dentry->d_inode->i_mode)) { | 2817 | d_is_reg(dentry)) { |
2818 | goto out; | 2818 | goto out; |
2819 | } | 2819 | } |
2820 | /* will fail later, go on to get the right error */ | 2820 | /* will fail later, go on to get the right error */ |