Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44859
b: refs/heads/master
c: d0e671a
h: refs/heads/master
i:
  44857: 1d8f65a
  44855: c3101fd
v: v3
  • Loading branch information
Dave Kleikamp authored and Linus Torvalds committed Dec 21, 2006
1 parent 8b42e4c commit b3b2f01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fba2591bf4e418b6c3f9f8794c9dd8fe40ae7bd9
refs/heads/master: d0e671a932cb9c653b27393cec26aec012a8d97e
15 changes: 1 addition & 14 deletions trunk/fs/jfs/jfs_metapage.c
Original file line number Diff line number Diff line change
Expand Up @@ -764,22 +764,9 @@ void release_metapage(struct metapage * mp)
} else if (mp->lsn) /* discard_metapage doesn't remove it */
remove_from_logsync(mp);

#if MPS_PER_PAGE == 1
/*
* If we know this is the only thing in the page, we can throw
* the page out of the page cache. If pages are larger, we
* don't want to do this.
*/

/* Retest mp->count since we may have released page lock */
if (test_bit(META_discard, &mp->flag) && !mp->count) {
clear_page_dirty(page);
ClearPageUptodate(page);
}
#else
/* Try to keep metapages from using up too much memory */
drop_metapage(page, mp);
#endif

unlock_page(page);
page_cache_release(page);
}
Expand Down

0 comments on commit b3b2f01

Please sign in to comment.