Commit 583ada47 authored by Ryusuke Konishi's avatar Ryusuke Konishi

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: default avatarRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
parent 25b8d7de
...@@ -66,7 +66,7 @@ struct nilfs_bmap_operations { ...@@ -66,7 +66,7 @@ struct nilfs_bmap_operations {
int (*bop_delete)(struct nilfs_bmap *, __u64); int (*bop_delete)(struct nilfs_bmap *, __u64);
void (*bop_clear)(struct nilfs_bmap *); void (*bop_clear)(struct nilfs_bmap *);
int (*bop_propagate)(const struct nilfs_bmap *, struct buffer_head *); int (*bop_propagate)(struct nilfs_bmap *, struct buffer_head *);
void (*bop_lookup_dirty_buffers)(struct nilfs_bmap *, void (*bop_lookup_dirty_buffers)(struct nilfs_bmap *,
struct list_head *); struct list_head *);
......
...@@ -1899,7 +1899,7 @@ static int nilfs_btree_propagate_v(struct nilfs_btree *btree, ...@@ -1899,7 +1899,7 @@ static int nilfs_btree_propagate_v(struct nilfs_btree *btree,
return ret; return ret;
} }
static int nilfs_btree_propagate(const struct nilfs_bmap *bmap, static int nilfs_btree_propagate(struct nilfs_bmap *bmap,
struct buffer_head *bh) struct buffer_head *bh)
{ {
struct nilfs_btree *btree; struct nilfs_btree *btree;
...@@ -1942,7 +1942,7 @@ static int nilfs_btree_propagate(const struct nilfs_bmap *bmap, ...@@ -1942,7 +1942,7 @@ static int nilfs_btree_propagate(const struct nilfs_bmap *bmap,
return ret; return ret;
} }
static int nilfs_btree_propagate_gc(const struct nilfs_bmap *bmap, static int nilfs_btree_propagate_gc(struct nilfs_bmap *bmap,
struct buffer_head *bh) struct buffer_head *bh)
{ {
return nilfs_dat_mark_dirty(nilfs_bmap_get_dat(bmap), bh->b_blocknr); return nilfs_dat_mark_dirty(nilfs_bmap_get_dat(bmap), bh->b_blocknr);
......
...@@ -269,7 +269,7 @@ int nilfs_direct_delete_and_convert(struct nilfs_bmap *bmap, ...@@ -269,7 +269,7 @@ int nilfs_direct_delete_and_convert(struct nilfs_bmap *bmap,
return 0; return 0;
} }
static int nilfs_direct_propagate(const struct nilfs_bmap *bmap, static int nilfs_direct_propagate(struct nilfs_bmap *bmap,
struct buffer_head *bh) struct buffer_head *bh)
{ {
struct nilfs_direct *direct = (struct nilfs_direct *)bmap; struct nilfs_direct *direct = (struct nilfs_direct *)bmap;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment