]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6237041a0939e43628366b16b274e3e5eaedaedf
tree80b51d4031a1aec71459f67043377228cf1a62be
parentd6d2e8e56d3d34a6667aefc9c0f0257a8868e1f3
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