diff options
author | Christoph Hellwig <hch@lst.de> | 2019-06-29 04:30:22 +0200 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-06-29 04:30:22 +0200 |
commit | adfb5fb46af059387eca0fce1d8cd8733f9ee3a0 (patch) | |
tree | 7bb34bbb28698eeb8c7e9ab37114dd1e81045a51 /fs/xfs/xfs_super.c | |
parent | xfs: simplify xfs_chain_bio (diff) | |
download | linux-adfb5fb46af059387eca0fce1d8cd8733f9ee3a0.tar.xz linux-adfb5fb46af059387eca0fce1d8cd8733f9ee3a0.zip |
xfs: implement cgroup aware writeback
Link every newly allocated writeback bio to cgroup pointed to by the
writeback control structure, and charge every byte written back to it.
Tested-by: Stefan Priebe - Profihost AG <s.priebe@profihost.ag>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to '')
-rw-r--r-- | fs/xfs/xfs_super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index 5c28fb22b44b..94fd0a6e3842 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c @@ -1676,6 +1676,8 @@ xfs_fs_fill_super( sb->s_maxbytes = xfs_max_file_offset(sb->s_blocksize_bits); sb->s_max_links = XFS_MAXLINK; sb->s_time_gran = 1; + sb->s_iflags |= SB_I_CGROUPWB; + set_posix_acl_flag(sb); /* version 5 superblocks support inode version counters. */ |