orangefs: implement xattr cache
authorMartin Brandenburg <martin@omnibond.com>
Tue, 12 Dec 2017 18:46:30 +0000 (13:46 -0500)
committerMike Marshall <hubcap@omnibond.com>
Fri, 3 May 2019 18:32:37 +0000 (14:32 -0400)
commitfc2e2e9c43e3b3f5dec8a02b17ee3d6343d9783a
tree9a2b34f3f93eac859d2caad075f6dec85205736f
parent37624b58542fb9f2d9a70e6ea006ef8a5f66c30b
orangefs: implement xattr cache

This uses the same timeout as the getattr cache.  This substantially
increases performance when writing files with smaller buffer sizes.

When writing, the size is (often) changed, which causes a call to
notify_change which calls security_inode_need_killpriv which needs a
getxattr.  Caching it reduces traffic to the server.

Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/inode.c
fs/orangefs/orangefs-kernel.h
fs/orangefs/super.c
fs/orangefs/xattr.c