NFS: Charge open/lock file contexts to kmemcg
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 29 Jan 2022 18:04:10 +0000 (13:04 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 25 Feb 2022 23:50:12 +0000 (18:50 -0500)
commitd7867712d81c05680beff2c9645ff1e8fa59a41d
tree12eda63f9fb670032039fc52693f9242707ab5d0
parent3e17898aca293a24dae757a440a50aa63ca29671
NFS: Charge open/lock file contexts to kmemcg

Allow kmemcg to limit the number of open/lock file contexts, in the same
way that it limits the parent file descriptors.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/dir.c
fs/nfs/inode.c