statx: Reserve the top bit of the mask for future struct expansion
authorDavid Howells <dhowells@redhat.com>
Fri, 31 Mar 2017 17:32:10 +0000 (18:32 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 3 Apr 2017 05:05:59 +0000 (01:05 -0400)
commit47071aee6a1956524b9929b3b821f6d2f8cae23c
treeac2a548058e4eed0a029e22a9d86b255e5159e5f
parent5f955f26f3d42d04aba65590a32eb70eedb7f37d
statx: Reserve the top bit of the mask for future struct expansion

Reserve the top bit of the mask for future expansion of the statx struct
and give an error if statx() sees it set.  All the other bits are ignored
if we see them set but don't support the bit; we just clear the bit in the
returned mask.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/stat.c
include/uapi/linux/stat.h