]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
nilfs2: remove constant qualifier from argument of bmap propagate
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sat, 10 Jul 2010 12:37:47 +0000 (21:37 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Fri, 23 Jul 2010 01:02:13 +0000 (10:02 +0900)
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>
fs/nilfs2/bmap.h
fs/nilfs2/btree.c
fs/nilfs2/direct.c

index de88ddf3bf021bc2621e907cb4b702f18a663150..379fda4c668cebeb029577ac466ccb6461745197 100644 (file)
@@ -66,7 +66,7 @@ struct nilfs_bmap_operations {
        int (*bop_delete)(struct nilfs_bmap *, __u64);
        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 *,
                                         struct list_head *);
 
index b2347f79307245febe8ee58996c43a150fc6131c..a2dc36cb6ef79e34dba378d37cb8e847c3421070 100644 (file)
@@ -1899,7 +1899,7 @@ static int nilfs_btree_propagate_v(struct nilfs_btree *btree,
        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 nilfs_btree *btree;
@@ -1942,7 +1942,7 @@ static int nilfs_btree_propagate(const struct nilfs_bmap *bmap,
        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)
 {
        return nilfs_dat_mark_dirty(nilfs_bmap_get_dat(bmap), bh->b_blocknr);
index 32f1746a74a7e2ea5c21043fe23ee5e9fecfd80e..fd006eefc254acc76ae5dcb93bda85e72c1f4f83 100644 (file)
@@ -269,7 +269,7 @@ int nilfs_direct_delete_and_convert(struct nilfs_bmap *bmap,
        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 nilfs_direct *direct = (struct nilfs_direct *)bmap;