]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Show realtime device stats on statfs calls if realtime flags set
authorRichard Wareing <rwareing@fb.com>
Mon, 8 Jan 2018 18:41:33 +0000 (10:41 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 8 Jan 2018 18:41:33 +0000 (10:41 -0800)
commit24b57b9f94640df6604a3e102abd1cc5e081549f
treebc0bac214519561eb7bf8ce249b2dad5901fe9c2
parent7e659c49c20631f827e1b81b6519cc70db61dbe5
xfs: Show realtime device stats on statfs calls if realtime flags set

- Reports realtime device free blocks in statfs calls if (realtime)
  inheritance bit is set on the inode of directory, or realtime flag
  in the case of files.  This is a bit more intuitive, especially for
  use-cases which are using a much larger device for the realtime device.
- Add XFS_IS_REALTIME_MOUNT option to gate based on the existence of a
  realtime device on the mount, similar to the XFS_IS_REALTIME_INODE
  option.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Richard Wareing <rwareing@fb.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_linux.h
fs/xfs/xfs_super.c