diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-07-10 08:37:47 -0400 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-07-22 21:02:13 -0400 |
commit | 583ada4761e18bb105ce5181b0b13cf55ead6201 (patch) | |
tree | 01f0ea519265b965e50d87edd826ec56cdc7ca42 /fs/nilfs2 | |
parent | 25b8d7ded0e4579bf152882249abfd351e65a17d (diff) |
nilfs2: remove constant qualifier from argument of bmap propagate
The first argument of bops->bop_propagate operation takes a constant
qualifier, and causes compilation error when removed cast to pointer
of nilfs_btree structure type. This fixes the issue to prepare for
succesive removal of nilfs_btree struct.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2')
-rw-r--r-- | fs/nilfs2/bmap.h | 2 | ||||
-rw-r--r-- | fs/nilfs2/btree.c | 4 | ||||
-rw-r--r-- | fs/nilfs2/direct.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/fs/nilfs2/bmap.h b/fs/nilfs2/bmap.h index de88ddf3bf02..379fda4c668c 100644 --- a/fs/nilfs2/bmap.h +++ b/fs/nilfs2/bmap.h | |||
@@ -66,7 +66,7 @@ struct nilfs_bmap_operations { | |||
66 | int (*bop_delete)(struct nilfs_bmap *, __u64); | 66 | int (*bop_delete)(struct nilfs_bmap *, __u64); |
67 | void (*bop_clear)(struct nilfs_bmap *); | 67 | void (*bop_clear)(struct nilfs_bmap *); |
68 | 68 | ||
69 | int (*bop_propagate)(const struct nilfs_bmap *, struct buffer_head *); | 69 | int (*bop_propagate)(struct nilfs_bmap *, struct buffer_head *); |
70 | void (*bop_lookup_dirty_buffers)(struct nilfs_bmap *, | 70 | void (*bop_lookup_dirty_buffers)(struct nilfs_bmap *, |
71 | struct list_head *); | 71 | struct list_head *); |
72 | 72 | ||
diff --git a/fs/nilfs2/btree.c b/fs/nilfs2/btree.c index b2347f793072..a2dc36cb6ef7 100644 --- a/fs/nilfs2/btree.c +++ b/fs/nilfs2/btree.c | |||
@@ -1899,7 +1899,7 @@ static int nilfs_btree_propagate_v(struct nilfs_btree *btree, | |||
1899 | return ret; | 1899 | return ret; |
1900 | } | 1900 | } |
1901 | 1901 | ||
1902 | static int nilfs_btree_propagate(const struct nilfs_bmap *bmap, | 1902 | static int nilfs_btree_propagate(struct nilfs_bmap *bmap, |
1903 | struct buffer_head *bh) | 1903 | struct buffer_head *bh) |
1904 | { | 1904 | { |
1905 | struct nilfs_btree *btree; | 1905 | struct nilfs_btree *btree; |
@@ -1942,7 +1942,7 @@ static int nilfs_btree_propagate(const struct nilfs_bmap *bmap, | |||
1942 | return ret; | 1942 | return ret; |
1943 | } | 1943 | } |
1944 | 1944 | ||
1945 | static int nilfs_btree_propagate_gc(const struct nilfs_bmap *bmap, | 1945 | static int nilfs_btree_propagate_gc(struct nilfs_bmap *bmap, |
1946 | struct buffer_head *bh) | 1946 | struct buffer_head *bh) |
1947 | { | 1947 | { |
1948 | return nilfs_dat_mark_dirty(nilfs_bmap_get_dat(bmap), bh->b_blocknr); | 1948 | return nilfs_dat_mark_dirty(nilfs_bmap_get_dat(bmap), bh->b_blocknr); |
diff --git a/fs/nilfs2/direct.c b/fs/nilfs2/direct.c index 32f1746a74a7..fd006eefc254 100644 --- a/fs/nilfs2/direct.c +++ b/fs/nilfs2/direct.c | |||
@@ -269,7 +269,7 @@ int nilfs_direct_delete_and_convert(struct nilfs_bmap *bmap, | |||
269 | return 0; | 269 | return 0; |
270 | } | 270 | } |
271 | 271 | ||
272 | static int nilfs_direct_propagate(const struct nilfs_bmap *bmap, | 272 | static int nilfs_direct_propagate(struct nilfs_bmap *bmap, |
273 | struct buffer_head *bh) | 273 | struct buffer_head *bh) |
274 | { | 274 | { |
275 | struct nilfs_direct *direct = (struct nilfs_direct *)bmap; | 275 | struct nilfs_direct *direct = (struct nilfs_direct *)bmap; |