[PATCH] cleanup of bh->flags
authorAndrew Morton <akpm@zip.com.au>
Tue, 30 Apr 2002 06:53:51 +0000 (23:53 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 30 Apr 2002 06:53:51 +0000 (23:53 -0700)
commit39e8cdf731118a140eca48e69cc31ff53abe2d64
tree7e5a91f4d8c205f63fb7f0cba6edbc87ab3fefe1
parent411973b4db28fa3b2a97f44aa4897efe173a0b06
[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.
41 files changed:
drivers/block/ll_rw_blk.c
drivers/md/raid5.c
fs/affs/file.c
fs/block_dev.c
fs/buffer.c
fs/ext2/inode.c
fs/ext3/inode.c
fs/fat/buffer.c
fs/fat/file.c
fs/hfs/file.c
fs/hfs/sysdep.c
fs/hpfs/buffer.c
fs/hpfs/file.c
fs/jbd/commit.c
fs/jbd/journal.c
fs/jbd/recovery.c
fs/jbd/revoke.c
fs/jbd/transaction.c
fs/jfs/inode.c
fs/jfs/jfs_metapage.c
fs/jfs/namei.c
fs/minix/itree_common.c
fs/ntfs/aops.c
fs/reiserfs/do_balan.c
fs/reiserfs/inode.c
fs/reiserfs/journal.c
fs/reiserfs/resize.c
fs/reiserfs/tail_conversion.c
fs/sysv/balloc.c
fs/sysv/itree.c
fs/udf/inode.c
fs/udf/namei.c
fs/ufs/balloc.c
fs/ufs/inode.c
fs/ufs/util.c
include/linux/amigaffs.h
include/linux/buffer_head.h [new file with mode: 0644]
include/linux/fs.h
include/linux/jbd.h
include/linux/locks.h
mm/page-writeback.c