diff options
-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 48e1f60520ea..868d0cb9d473 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -1621,6 +1621,7 @@ static struct file *do_last(struct nameidata *nd, struct path *path, | |||
1621 | case LAST_DOTDOT: | 1621 | case LAST_DOTDOT: |
1622 | follow_dotdot(nd); | 1622 | follow_dotdot(nd); |
1623 | dir = nd->path.dentry; | 1623 | dir = nd->path.dentry; |
1624 | case LAST_DOT: | ||
1624 | if (nd->path.mnt->mnt_sb->s_type->fs_flags & FS_REVAL_DOT) { | 1625 | if (nd->path.mnt->mnt_sb->s_type->fs_flags & FS_REVAL_DOT) { |
1625 | if (!dir->d_op->d_revalidate(dir, nd)) { | 1626 | if (!dir->d_op->d_revalidate(dir, nd)) { |
1626 | error = -ESTALE; | 1627 | error = -ESTALE; |
@@ -1628,7 +1629,6 @@ static struct file *do_last(struct nameidata *nd, struct path *path, | |||
1628 | } | 1629 | } |
1629 | } | 1630 | } |
1630 | /* fallthrough */ | 1631 | /* fallthrough */ |
1631 | case LAST_DOT: | ||
1632 | case LAST_ROOT: | 1632 | case LAST_ROOT: |
1633 | if (open_flag & O_CREAT) | 1633 | if (open_flag & O_CREAT) |
1634 | goto exit; | 1634 | goto exit; |