smack: deduplicate smackfs/{direct,mapped} file_operations

The file_operations for smackfs/direct and smackfs/mapped are
identical up to a textual replacement of "direct" with "mapped"

This patch combines two instances of file_operations into one,
handling both files.

Fixes: f7112e6c9a ("Smack: allow for significantly longer Smack labels v4")
Signed-off-by: Konstantin Andreev <andreev@swemel.ru>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
This commit is contained in:
Konstantin Andreev 2026-05-25 01:37:48 +03:00 • committed by Casey Schaufler
commit 577dc3b6a8
2 changed files with 42 additions and 96 deletions