Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lustre-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
debian-packages
lustre-release
Commits
a245be72
Commit
a245be72
authored
20 years ago
by
Yury Umanets
Browse files
Options
Downloads
Patches
Plain Diff
- fix for sanityN.sh test_16 from Oleg (patch from #4982)
parent
225294bc
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lustre/llite/rw26.c
+2
-0
2 additions, 0 deletions
lustre/llite/rw26.c
lustre/obdfilter/filter_io_26.c
+7
-7
7 additions, 7 deletions
lustre/obdfilter/filter_io_26.c
with
9 additions
and
7 deletions
lustre/llite/rw26.c
+
2
−
0
View file @
a245be72
...
...
@@ -61,6 +61,8 @@ static int ll_writepage_26(struct page *page, struct writeback_control *wbc)
locked page too */
static
int
ll_invalidatepage
(
struct
page
*
page
,
unsigned
long
offset
)
{
if
(
offset
)
return
0
;
if
(
PagePrivate
(
page
))
ll_removepage
(
page
);
return
1
;
...
...
This diff is collapsed.
Click to expand it.
lustre/obdfilter/filter_io_26.c
+
7
−
7
View file @
a245be72
...
...
@@ -274,25 +274,25 @@ int filter_do_bio(struct obd_device *obd, struct inode *inode,
RETURN
(
rc
);
}
static
void
filter_clear_page_cache
(
struct
inode
*
inode
,
struct
kiobuf
*
iobuf
)
static
void
filter_clear_page_cache
(
struct
inode
*
inode
,
struct
dio_request
*
iobuf
)
{
#if 0
struct
page
*
page
;
int
i
;
for (i = 0; i < iobuf->
n
r_pages ; i++) {
for
(
i
=
0
;
i
<
iobuf
->
d
r_
n
pages
;
i
++
)
{
page
=
find_lock_page
(
inode
->
i_mapping
,
iobuf->
maplist
[i]->index);
iobuf
->
dr_pages
[
i
]
->
index
);
if
(
page
==
NULL
)
continue
;
if
(
page
->
mapping
!=
NULL
)
{
block_invalidatepage
(
page
,
0
);
truncate_complete_page(page);
wait_on_page_writeback
(
page
);
ll_truncate_complete_page
(
page
);
}
unlock_page
(
page
);
page_cache_release
(
page
);
}
#endif
}
/* Must be called with i_sem taken for writes; this will drop it */
...
...
@@ -365,7 +365,7 @@ int filter_direct_io(int rw, struct dentry *dchild, void *iobuf,
/* be careful to call this after fsync_inode_data_buffers has waited
* for IO to complete before we evict it from the cache */
filter_clear_page_cache
(
inode
,
iobuf
);
filter_clear_page_cache
(
inode
,
dreq
);
RETURN
(
filter_do_bio
(
obd
,
inode
,
dreq
,
rw
));
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment