clean up the attr interface v2

Christoph Hellwig
2020-01-14T08:13:06Z

Changes since v1:
- rebased to for-next, which includes the fixes from the first
version