locks: make /proc/locks show IS_FILE_PVT locks as type "FLPVT"
authorJeff Layton <jlayton@redhat.com>
Mon, 3 Feb 2014 17:13:09 +0000 (12:13 -0500)
committerDanny Wood <danwood76@gmail.com>
Tue, 2 Feb 2021 12:38:21 +0000 (12:38 +0000)
commitc318b4d3da3c0451e193201daaa2ac3fc8c26cb5
treecba318d71a48f1cc7bdd5d475a5f56ce6a5af473
parentdf241249e26b138e3c5d84805ae690f3e35c3dd2
locks: make /proc/locks show IS_FILE_PVT locks as type "FLPVT"

In a later patch, we'll be adding a new type of lock that's owned by
the struct file instead of the files_struct. Those sorts of locks
will be flagged with a new FL_FILE_PVT flag.

Report these types of locks as "FLPVT" in /proc/locks to distinguish
them from "classic" POSIX locks.

Acked-by: J. Bruce Fields <bfields@fieldses.org>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Change-Id: Id0b6d9c7a947b512e5683ad3b6188d73582c2de9
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
fs/locks.c
include/linux/fs.h