ovl: Use macros to present ovl_xattr
authorhujianyang <hujianyang@huawei.com>
Mon, 24 Nov 2014 10:25:21 +0000 (18:25 +0800)
committerMiklos Szeredi <mszeredi@suse.cz>
Fri, 12 Dec 2014 23:59:52 +0000 (00:59 +0100)
commitcead89bb08c0f64e23886f1c18df9bb98e97c55c
treedbf10b40ef83804ac343cbdf4f3776af685d1e62
parent1ba38725a351f91769918b132c17fb7fcaf6c2f5
ovl: Use macros to present ovl_xattr

This patch adds two macros:

OVL_XATTR_PRE_NAME and OVL_XATTR_PRE_LEN

to present ovl_xattr name prefix and its length. Also, a
new macro OVL_XATTR_OPAQUE is introduced to replace old
*ovl_opaque_xattr*.

Fix the length of "trusted.overlay." to *16*.

Signed-off-by: hujianyang <hujianyang@huawei.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/overlayfs/dir.c
fs/overlayfs/inode.c
fs/overlayfs/overlayfs.h
fs/overlayfs/super.c