diff options
| author | Andrew Morton <akpm@zip.com.au> | 2002-04-29 23:52:37 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-04-29 23:52:37 -0700 |
| commit | aa78091f0f2860df00a4ccc5d4609afd9d831dd0 (patch) | |
| tree | fe91202ae1fed74c403bf6f7cc9caf5a3f2ca5da /fs/minix | |
| parent | 68872e78c90ddfe683bf1c10ee93323f6d640251 (diff) | |
[PATCH] cleanup page flags
page->flags cleanup.
Moves the definitions of the page->flags bits and all the PageFoo
macros into linux/page-flags.h. That file is currently included from
mm.h, but the stage is set to remove that and include page-flags.h
direct in all .c files which require that. (120 of them).
The patch also makes all the page flag macros and functions consistent:
For PG_foo, the following functions are defined:
SetPageFoo
ClearPageFoo
TestSetPageFoo
TestClearPageFoo
PageFoo
and that's it.
- Page_Uptodate is renamed to PageUptodate
- LockPage is removed. All users updated to use SetPageLocked
- UnlockPage is removed. All callers updated to use unlock_page().
it's a real function - there's no need to hide that fact.
- PageTestandClearReferenced renamed to TestClearPageReferenced
- PageSetSlab renamed to SetPageSlab
- __SetPageReserved is removed. It's an infinitesimally small
microoptimisation, and is inconsistent.
- TryLockPage is renamed to TestSetPageLocked
- PageSwapCache() is renamed to page_swap_cache(), so it doesn't
pretend to be a page->flags bit test.
Diffstat (limited to 'fs/minix')
| -rw-r--r-- | fs/minix/dir.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/minix/dir.c b/fs/minix/dir.c index a89969d8371d..57b286dc7f46 100644 --- a/fs/minix/dir.c +++ b/fs/minix/dir.c @@ -66,7 +66,7 @@ static struct page * dir_get_page(struct inode *dir, unsigned long n) if (!IS_ERR(page)) { wait_on_page(page); kmap(page); - if (!Page_Uptodate(page)) + if (!PageUptodate(page)) goto fail; } return page; @@ -269,7 +269,7 @@ int minix_delete_entry(struct minix_dir_entry *de, struct page *page) de->inode = 0; err = dir_commit_chunk(page, from, to); } - UnlockPage(page); + unlock_page(page); dir_put_page(page); inode->i_ctime = inode->i_mtime = CURRENT_TIME; mark_inode_dirty(inode); @@ -303,7 +303,7 @@ int minix_make_empty(struct inode *inode, struct inode *dir) err = dir_commit_chunk(page, 0, 2 * sbi->s_dirsize); fail: - UnlockPage(page); + unlock_page(page); page_cache_release(page); return err; } @@ -369,7 +369,7 @@ void minix_set_link(struct minix_dir_entry *de, struct page *page, de->inode = inode->i_ino; err = dir_commit_chunk(page, from, to); } - UnlockPage(page); + unlock_page(page); dir_put_page(page); dir->i_mtime = dir->i_ctime = CURRENT_TIME; mark_inode_dirty(dir); |
