staging/lustre/llite: move root_squash from sysfs to debugfs
authorOleg Drokin <green@linuxhacker.ru>
Wed, 7 Dec 2016 22:41:27 +0000 (17:41 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jan 2017 14:01:20 +0000 (15:01 +0100)
commit4c13990e35b9f053857d4ad83bf0f58e612ec414
tree4587503148c62e7fb69c3676c6618a094921a494
parent2fd2434c3f47da8f861b3ce43b6b2d3eb2b55ac6
staging/lustre/llite: move root_squash from sysfs to debugfs

root_squash control got accidentally moved to sysfs instead of
debugfs, and the write side of it was also broken expecting a
userspace buffer.
It contains both uid and gid values in a single file, so debugfs
is a clear place for it.

Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Fixes: c948390f10ccc "fix inconsistencies of root squash feature"
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/lproc_llite.c