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 5a9291c31881..ffab2e06e147 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -3077,7 +3077,7 @@ finish_open: | |||
3077 | error = -ENOTDIR; | 3077 | error = -ENOTDIR; |
3078 | if ((nd->flags & LOOKUP_DIRECTORY) && !d_can_lookup(nd->path.dentry)) | 3078 | if ((nd->flags & LOOKUP_DIRECTORY) && !d_can_lookup(nd->path.dentry)) |
3079 | goto out; | 3079 | goto out; |
3080 | if (!S_ISREG(nd->inode->i_mode)) | 3080 | if (!d_is_reg(nd->path.dentry)) |
3081 | will_truncate = false; | 3081 | will_truncate = false; |
3082 | 3082 | ||
3083 | if (will_truncate) { | 3083 | if (will_truncate) { |