mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
xfs: remove XFS_IFBROOT
Just check for a btree format fork instead of the using the equivalent in-memory XFS_IFBROOT flag. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
This commit is contained in:
parent
0eba048dd3
commit
ac1e067211
4 changed files with 8 additions and 14 deletions
|
@ -60,7 +60,7 @@ xfs_init_local_fork(
|
|||
}
|
||||
|
||||
ifp->if_bytes = size;
|
||||
ifp->if_flags &= ~(XFS_IFEXTENTS | XFS_IFBROOT);
|
||||
ifp->if_flags &= ~XFS_IFEXTENTS;
|
||||
ifp->if_flags |= XFS_IFINLINE;
|
||||
}
|
||||
|
||||
|
@ -214,7 +214,6 @@ xfs_iformat_btree(
|
|||
xfs_bmdr_to_bmbt(ip, dfp, XFS_DFORK_SIZE(dip, ip->i_mount, whichfork),
|
||||
ifp->if_broot, size);
|
||||
ifp->if_flags &= ~XFS_IFEXTENTS;
|
||||
ifp->if_flags |= XFS_IFBROOT;
|
||||
|
||||
ifp->if_bytes = 0;
|
||||
ifp->if_u1.if_root = NULL;
|
||||
|
@ -433,7 +432,6 @@ xfs_iroot_realloc(
|
|||
XFS_BMBT_BLOCK_LEN(ip->i_mount));
|
||||
} else {
|
||||
new_broot = NULL;
|
||||
ifp->if_flags &= ~XFS_IFBROOT;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue