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
6fd1e845
Commit
6fd1e845
authored
Feb 10, 2004
by
Nathan Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] Add back a missing pflags check in releasepage.
SGI Modid: xfs-linux:xfs-kern:166323a
parent
2c36b588
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
fs/xfs/linux/xfs_aops.c
fs/xfs/linux/xfs_aops.c
+7
-2
No files found.
fs/xfs/linux/xfs_aops.c
View file @
6fd1e845
...
@@ -410,7 +410,6 @@ map_unwritten(
...
@@ -410,7 +410,6 @@ map_unwritten(
/* get an "empty" pagebuf to manage IO completion
/* get an "empty" pagebuf to manage IO completion
* Proper values will be set before returning */
* Proper values will be set before returning */
pb
=
pagebuf_lookup
(
iomapp
->
iomap_target
,
0
,
0
,
0
);
pb
=
pagebuf_lookup
(
iomapp
->
iomap_target
,
0
,
0
,
0
);
if
(
!
pb
)
if
(
!
pb
)
return
-
EAGAIN
;
return
-
EAGAIN
;
...
@@ -473,7 +472,7 @@ map_unwritten(
...
@@ -473,7 +472,7 @@ map_unwritten(
nblocks
+=
bs
;
nblocks
+=
bs
;
atomic_add
(
bs
,
&
pb
->
pb_io_remaining
);
atomic_add
(
bs
,
&
pb
->
pb_io_remaining
);
convert_page
(
inode
,
page
,
iomapp
,
pb
,
startio
,
all_bh
);
convert_page
(
inode
,
page
,
iomapp
,
pb
,
startio
,
all_bh
);
/* stop if converting the next page might add
/* stop if converting the next page might add
* enough blocks that the corresponding byte
* enough blocks that the corresponding byte
* count won't fit in our ulong page buf length */
* count won't fit in our ulong page buf length */
if
(
nblocks
>=
((
ULONG_MAX
-
PAGE_SIZE
)
>>
block_bits
))
if
(
nblocks
>=
((
ULONG_MAX
-
PAGE_SIZE
)
>>
block_bits
))
...
@@ -1183,6 +1182,12 @@ linvfs_release_page(
...
@@ -1183,6 +1182,12 @@ linvfs_release_page(
if
(
!
(
gfp_mask
&
__GFP_FS
))
if
(
!
(
gfp_mask
&
__GFP_FS
))
return
0
;
return
0
;
/* If we are already inside a transaction or the thread cannot
* do I/O, we cannot release this page.
*/
if
(
PFLAGS_TEST_FSTRANS
())
return
0
;
/*
/*
* Convert delalloc space to real space, do not flush the
* Convert delalloc space to real space, do not flush the
* data out to disk, that will be done by the caller.
* data out to disk, that will be done by the caller.
...
...
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