patch-1.3.42 linux/fs/buffer.c
Next file: linux/fs/dcache.c
Previous file: linux/fs/binfmt_elf.c
Back to the patch index
Back to the overall index
- Lines: 42
- Date:
Tue Nov 14 08:46:23 1995
- Orig file:
v1.3.41/linux/fs/buffer.c
- Orig date:
Mon Oct 23 18:02:17 1995
diff -u --recursive --new-file v1.3.41/linux/fs/buffer.c linux/fs/buffer.c
@@ -428,7 +428,7 @@
bh->b_next->b_prev = bh;
}
-static struct buffer_head * find_buffer(kdev_t dev, int block, int size)
+static inline struct buffer_head * find_buffer(kdev_t dev, int block, int size)
{
struct buffer_head * tmp;
@@ -807,10 +807,8 @@
/*
* Release a buffer head
*/
-void brelse(struct buffer_head * buf)
+void __brelse(struct buffer_head * buf)
{
- if (!buf)
- return;
wait_on_buffer(buf);
/* If dirty, mark the time this buffer should be written back */
@@ -828,10 +826,8 @@
/*
* bforget() is like brelse(), except is throws the buffer away
*/
-void bforget(struct buffer_head * buf)
+void __bforget(struct buffer_head * buf)
{
- if (!buf)
- return;
wait_on_buffer(buf);
if (buf->b_count != 1) {
printk("Aieee... bforget(): count = %d\n", buf->b_count);
@@ -1044,7 +1040,7 @@
* "address" points to the new page we can use to move things
* around..
*/
-static unsigned long try_to_align(struct buffer_head ** bh, int nrbuf,
+static inline unsigned long try_to_align(struct buffer_head ** bh, int nrbuf,
unsigned long address)
{
while (nrbuf-- > 0)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this