2 * linux/fs/fat/buffer.c
8 #include <linux/slab.h>
9 #include <linux/string.h>
11 #include <linux/blkdev.h>
12 #include <linux/msdos_fs.h>
13 #include <linux/fat_cvf.h>
16 # define PRINTK(x) printk x
21 struct buffer_head *fat_bread(struct super_block *sb, int block)
23 return MSDOS_SB(sb)->cvf_format->cvf_bread(sb,block);
25 struct buffer_head *fat_getblk(struct super_block *sb, int block)
27 return MSDOS_SB(sb)->cvf_format->cvf_getblk(sb,block);
29 void fat_brelse (struct super_block *sb, struct buffer_head *bh)
32 MSDOS_SB(sb)->cvf_format->cvf_brelse(sb,bh);
34 void fat_mark_buffer_dirty (
35 struct super_block *sb,
36 struct buffer_head *bh)
38 MSDOS_SB(sb)->cvf_format->cvf_mark_buffer_dirty(sb,bh);
40 void fat_set_uptodate (
41 struct super_block *sb,
42 struct buffer_head *bh,
45 MSDOS_SB(sb)->cvf_format->cvf_set_uptodate(sb,bh,val);
47 int fat_is_uptodate(struct super_block *sb, struct buffer_head *bh)
49 return MSDOS_SB(sb)->cvf_format->cvf_is_uptodate(sb,bh);
51 void fat_ll_rw_block (
52 struct super_block *sb,
55 struct buffer_head *bh[32])
57 MSDOS_SB(sb)->cvf_format->cvf_ll_rw_block(sb,opr,nbreq,bh);
60 struct buffer_head *default_fat_bread(struct super_block *sb, int block)
62 return sb_bread(sb, block);
65 struct buffer_head *default_fat_getblk(struct super_block *sb, int block)
67 return sb_getblk(sb, block);
70 void default_fat_brelse(struct super_block *sb, struct buffer_head *bh)
75 void default_fat_mark_buffer_dirty (
76 struct super_block *sb,
77 struct buffer_head *bh)
79 mark_buffer_dirty (bh);
82 void default_fat_set_uptodate (
83 struct super_block *sb,
84 struct buffer_head *bh,
87 mark_buffer_uptodate(bh, val);
90 int default_fat_is_uptodate (struct super_block *sb, struct buffer_head *bh)
92 return buffer_uptodate(bh);
95 void default_fat_ll_rw_block (
96 struct super_block *sb,
99 struct buffer_head *bh[32])
101 ll_rw_block(opr,nbreq,bh);