projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a90c00f
)
xfs: reserve AG space for the refcount btree root
author
Darrick J. Wong
<darrick.wong@oracle.com>
Mon, 3 Oct 2016 16:11:24 +0000
(09:11 -0700)
committer
Darrick J. Wong
<darrick.wong@oracle.com>
Mon, 3 Oct 2016 16:11:24 +0000
(09:11 -0700)
Reduce the max AG usable space size so that we always have space for
the refcount btree root.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_alloc.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/xfs/libxfs/xfs_alloc.c
b/fs/xfs/libxfs/xfs_alloc.c
index be7e3fcefd73c989c7bb302bc77732af74f3f058..effb64cf714fee3894821a6d6796b3affd583faa 100644
(file)
--- a/
fs/xfs/libxfs/xfs_alloc.c
+++ b/
fs/xfs/libxfs/xfs_alloc.c
@@
-128,6
+128,8
@@
xfs_alloc_ag_max_usable(
blocks++; /* finobt root block */
if (xfs_sb_version_hasrmapbt(&mp->m_sb))
blocks++; /* rmap root block */
+ if (xfs_sb_version_hasreflink(&mp->m_sb))
+ blocks++; /* refcount root block */
return mp->m_sb.sb_agblocks - blocks;
}