summaryrefslogtreecommitdiff
path: root/include/linux/amigaffs.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@zip.com.au>2002-04-29 23:53:51 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-04-29 23:53:51 -0700
commit39e8cdf731118a140eca48e69cc31ff53abe2d64 (patch)
tree7e5a91f4d8c205f63fb7f0cba6edbc87ab3fefe1 /include/linux/amigaffs.h
parent411973b4db28fa3b2a97f44aa4897efe173a0b06 (diff)
[PATCH] cleanup of bh->flags
Moves all buffer_head-related stuff out of linux/fs.h and into linux/buffer_head.h. buffer_head.h is currently included at the very end of fs.h. So it is possible to include buffer_head directly from all .c files and remove this nested include. Also rationalises all the set_buffer_foo() and mark_buffer_bar() functions. We have: set_buffer_foo(bh) clear_buffer_foo(bh) buffer_foo(bh) and, in some cases, where needed: test_set_buffer_foo(bh) test_clear_buffer_foo(bh) And that's it. BUFFER_FNS() and TAS_BUFFER_FNS() macros generate all the above real inline functions. Normally not a big fan of cpp abuse, but in this case it fits. These function-generating macros are available to filesystems to expand their own b_state functions. JBD uses this in one case.
Diffstat (limited to 'include/linux/amigaffs.h')
-rw-r--r--include/linux/amigaffs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/amigaffs.h b/include/linux/amigaffs.h
index 342ab37e0c2e..535c3bf41b9a 100644
--- a/include/linux/amigaffs.h
+++ b/include/linux/amigaffs.h
@@ -50,7 +50,7 @@ affs_getzeroblk(struct super_block *sb, int block)
bh = sb_getblk(sb, block);
lock_buffer(bh);
memset(bh->b_data, 0 , sb->s_blocksize);
- mark_buffer_uptodate(bh, 1);
+ set_buffer_uptodate(bh);
unlock_buffer(bh);
return bh;
}
@@ -64,7 +64,7 @@ affs_getemptyblk(struct super_block *sb, int block)
if (block >= AFFS_SB(sb)->s_reserved && block < AFFS_SB(sb)->s_partition_size) {
bh = sb_getblk(sb, block);
wait_on_buffer(bh);
- mark_buffer_uptodate(bh, 1);
+ set_buffer_uptodate(bh);
return bh;
}
return NULL;