]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
nfs: add missing "posix" local_lock constant table definition
authorScott Mayhew <smayhew@redhat.com>
Sat, 10 Oct 2020 14:03:12 +0000 (10:03 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 09:11:40 +0000 (10:11 +0100)
[ Upstream commit a2d24bcb97dc7b0be1cb891e60ae133bdf36c786 ]

"mount -o local_lock=posix..." was broken by the mount API conversion
due to the missing constant.

Fixes: e38bb238ed8c ("NFS: Convert mount option parsing to use functionality from fs_parser.h")
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/fs_context.c

index 524812984e2d43d78e275f5c6b08190797e0c3a5..009987e6902074bd5c7df16e04bc398d82f8fac6 100644 (file)
@@ -94,6 +94,7 @@ enum {
 static const struct constant_table nfs_param_enums_local_lock[] = {
        { "all",                Opt_local_lock_all },
        { "flock",      Opt_local_lock_flock },
+       { "posix",      Opt_local_lock_posix },
        { "none",               Opt_local_lock_none },
        {}
 };