OSDN Git Service

fs: move generic stat response attr handling to vfs_getattr_nosec
authorChristoph Hellwig <hch@lst.de>
Mon, 21 Jan 2019 15:23:26 +0000 (16:23 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 1 Feb 2019 06:55:45 +0000 (01:55 -0500)
commit801e523796004a3aaeae7dfc83fe81888f055287
tree80b51d4031a1aec71459f67043377228cf1a62be
parent5678b5d6a8ec433936ccb9e0626e6361e241c275
fs: move generic stat response attr handling to vfs_getattr_nosec

generic_fillattr is an optional helper that isn't used by all file
systems, move handling purely based on inode flags to vfs_getattr_nosec,
which is common code.

This fixes setting this flag for file systems not using generic_fillattr
like xfs.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/stat.c