gfs2: Switch to may_setattr in gfs2_setattr
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 28 Jul 2021 12:47:34 +0000 (07:47 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 13 Aug 2021 04:41:05 +0000 (00:41 -0400)
commitd75b9fa053e4cd278281386d860c26fdbfbe9d03
treebefab30b224cb9b08204d883bd21469869ac76d2
parent7bb698f09bdd01fbb6d48c14bb1dde556dc1af00
gfs2: Switch to may_setattr in gfs2_setattr

The permission check in gfs2_setattr is an old and outdated version of
may_setattr().  Switch to the updated version.

Fixes fstest generic/079.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/gfs2/inode.c