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
405b12f0
Commit
405b12f0
authored
Oct 16, 2002
by
Stephen Lord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XFS: fix previous change, the wrong xfs_alloc_mark_busy call was removed
Modid: 2.5.x-xfs:slinx:130045a
parent
4b2892ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
16 deletions
+14
-16
fs/xfs/xfs_alloc.c
fs/xfs/xfs_alloc.c
+14
-16
No files found.
fs/xfs/xfs_alloc.c
View file @
405b12f0
...
@@ -1768,6 +1768,18 @@ xfs_free_ag_extent(
...
@@ -1768,6 +1768,18 @@ xfs_free_ag_extent(
(
haveright
?
"right"
:
"none"
),
(
haveright
?
"right"
:
"none"
),
agno
,
bno
,
len
,
isfl
);
agno
,
bno
,
len
,
isfl
);
/*
* Since blocks move to the free list without the coordination
* 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
* when the iclog commits to disk. If a busy block is allocated,
* the iclog is pushed up to the LSN that freed the block.
*/
xfs_alloc_mark_busy
(
tp
,
agno
,
bno
,
len
);
return
0
;
return
0
;
error0:
error0:
...
@@ -2102,9 +2114,8 @@ xfs_alloc_put_freelist(
...
@@ -2102,9 +2114,8 @@ xfs_alloc_put_freelist(
agf
=
XFS_BUF_TO_AGF
(
agbp
);
agf
=
XFS_BUF_TO_AGF
(
agbp
);
mp
=
tp
->
t_mountp
;
mp
=
tp
->
t_mountp
;
if
(
!
agflbp
&&
if
(
!
agflbp
&&
(
error
=
xfs_alloc_read_agfl
(
mp
,
tp
,
(
error
=
xfs_alloc_read_agfl
(
mp
,
tp
,
agf
->
agf_seqno
,
&
agflbp
)))
INT_GET
(
agf
->
agf_seqno
,
ARCH_CONVERT
),
&
agflbp
)))
return
error
;
return
error
;
agfl
=
XFS_BUF_TO_AGFL
(
agflbp
);
agfl
=
XFS_BUF_TO_AGFL
(
agflbp
);
INT_MOD
(
agf
->
agf_fllast
,
ARCH_CONVERT
,
1
);
INT_MOD
(
agf
->
agf_fllast
,
ARCH_CONVERT
,
1
);
...
@@ -2123,19 +2134,6 @@ xfs_alloc_put_freelist(
...
@@ -2123,19 +2134,6 @@ xfs_alloc_put_freelist(
(
int
)((
xfs_caddr_t
)
blockp
-
(
xfs_caddr_t
)
agfl
),
(
int
)((
xfs_caddr_t
)
blockp
-
(
xfs_caddr_t
)
agfl
),
(
int
)((
xfs_caddr_t
)
blockp
-
(
xfs_caddr_t
)
agfl
+
(
int
)((
xfs_caddr_t
)
blockp
-
(
xfs_caddr_t
)
agfl
+
sizeof
(
xfs_agblock_t
)
-
1
));
sizeof
(
xfs_agblock_t
)
-
1
));
/*
* Since blocks move to the free list without the coordination
* 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
* when the iclog commits to disk. If a busy block is allocated,
* the iclog is pushed up to the LSN that freed the block.
*/
xfs_alloc_mark_busy
(
tp
,
INT_GET
(
agf
->
agf_seqno
,
ARCH_CONVERT
),
bno
,
1
);
return
0
;
return
0
;
}
}
...
...
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