fs: Provide __inode_get_bytes()
authorJan Kara <jack@suse.cz>
Tue, 8 Aug 2017 07:54:36 +0000 (09:54 +0200)
committerJan Kara <jack@suse.cz>
Thu, 17 Aug 2017 20:06:03 +0000 (22:06 +0200)
commitf4a8116a4c8c8f754d0ec1498a2ba4b63d114e6a
treed3065b20975952041d211e6d0f221db6542cde19
parent3ab167d2ba10017a430e427ddd3d690a74f8692e
fs: Provide __inode_get_bytes()

Provide helper __inode_get_bytes() which assumes i_lock is already
acquired. Quota code will need this to be able to use i_lock to protect
consistency of quota accounting information and inode usage.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/stat.c
include/linux/fs.h