Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
2b203f6c
Commit
2b203f6c
authored
Oct 16, 2002
by
Stephen Lord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XFS: fix byte ordering issues with earlier allocator fix
Modid: 2.5.x-xfs:slinx:130071a
parent
405b12f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
fs/xfs/xfs_alloc.c
fs/xfs/xfs_alloc.c
+6
-5
fs/xfs/xfs_alloc_btree.c
fs/xfs/xfs_alloc_btree.c
+4
-2
No files found.
fs/xfs/xfs_alloc.c
View file @
2b203f6c
...
...
@@ -1773,9 +1773,9 @@ xfs_free_ag_extent(
* used in xfs_bmap_finish, we can't allow block to be available
* for reallocation and non-transaction writing (user data)
* until we know that the transaction that moved it to the free
* list is permanently on disk.
We track the blocks by declaring
* these blocks as "busy"; the busy list is maintained on a per-ag
* basis and each transaction records which entries should be removed
* list is permanently on disk.
We track the blocks by declaring
* these blocks as "busy"; the busy list is maintained on a per-ag
* basis and each transaction records which entries should be removed
* when the iclog commits to disk. If a busy block is allocated,
* the iclog is pushed up to the LSN that freed the block.
*/
...
...
@@ -2114,8 +2114,9 @@ xfs_alloc_put_freelist(
agf
=
XFS_BUF_TO_AGF
(
agbp
);
mp
=
tp
->
t_mountp
;
if
(
!
agflbp
&&
(
error
=
xfs_alloc_read_agfl
(
mp
,
tp
,
agf
->
agf_seqno
,
&
agflbp
)))
if
(
!
agflbp
&&
(
error
=
xfs_alloc_read_agfl
(
mp
,
tp
,
INT_GET
(
agf
->
agf_seqno
,
ARCH_CONVERT
),
&
agflbp
)))
return
error
;
agfl
=
XFS_BUF_TO_AGFL
(
agflbp
);
INT_MOD
(
agf
->
agf_fllast
,
ARCH_CONVERT
,
1
);
...
...
fs/xfs/xfs_alloc_btree.c
View file @
2b203f6c
...
...
@@ -237,7 +237,8 @@ xfs_alloc_delrec(
* allocated, the iclog is pushed up to the LSN
* that freed the block.
*/
xfs_alloc_mark_busy
(
cur
->
bc_tp
,
agf
->
agf_seqno
,
bno
,
1
);
xfs_alloc_mark_busy
(
cur
->
bc_tp
,
INT_GET
(
agf
->
agf_seqno
,
ARCH_CONVERT
),
bno
,
1
);
xfs_trans_agbtree_delta
(
cur
->
bc_tp
,
-
1
);
xfs_alloc_log_agf
(
cur
->
bc_tp
,
cur
->
bc_private
.
a
.
agbp
,
...
...
@@ -556,7 +557,8 @@ xfs_alloc_delrec(
* busy block is allocated, the iclog is pushed up to the
* LSN that freed the block.
*/
xfs_alloc_mark_busy
(
cur
->
bc_tp
,
agf
->
agf_seqno
,
bno
,
1
);
xfs_alloc_mark_busy
(
cur
->
bc_tp
,
INT_GET
(
agf
->
agf_seqno
,
ARCH_CONVERT
),
bno
,
1
);
xfs_trans_agbtree_delta
(
cur
->
bc_tp
,
-
1
);
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment