Skip to content

Commit

Permalink
tmpfs: deny and force are not huge mount options
Browse files Browse the repository at this point in the history
5.6-rc1 commit 2710c95 ("fs_parse: get rid of ->enums") regressed
the huge tmpfs mount options to an earlier state: "deny" and "force"
are not valid there, and can crash the kernel.  Delete those lines.

Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Hugh Dickins authored and Al Viro committed Feb 18, 2020
1 parent bb6d3fb commit bf4498a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mm/shmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -3386,8 +3386,6 @@ static const struct constant_table shmem_param_enums_huge[] = {
{"always", SHMEM_HUGE_ALWAYS },
{"within_size", SHMEM_HUGE_WITHIN_SIZE },
{"advise", SHMEM_HUGE_ADVISE },
{"deny", SHMEM_HUGE_DENY },
{"force", SHMEM_HUGE_FORCE },
{}
};

Expand Down

0 comments on commit bf4498a

Please sign in to comment.