Skip to content

Commit 583ada4

Browse files
committed
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>
1 parent 25b8d7d commit 583ada4

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎fs/nilfs2/bmap.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ struct nilfs_bmap_operations {
6666
int (*bop_delete)(struct nilfs_bmap *, __u64);
6767
void (*bop_clear)(struct nilfs_bmap *);
6868

69-
int (*bop_propagate)(const struct nilfs_bmap *, struct buffer_head *);
69+
int (*bop_propagate)(struct nilfs_bmap *, struct buffer_head *);
7070
void (*bop_lookup_dirty_buffers)(struct nilfs_bmap *,
7171
struct list_head *);
7272

‎fs/nilfs2/btree.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1899,7 +1899,7 @@ static int nilfs_btree_propagate_v(struct nilfs_btree *btree,
18991899
return ret;
19001900
}
19011901

1902-
static int nilfs_btree_propagate(const struct nilfs_bmap *bmap,
1902+
static int nilfs_btree_propagate(struct nilfs_bmap *bmap,
19031903
struct buffer_head *bh)
19041904
{
19051905
struct nilfs_btree *btree;
@@ -1942,7 +1942,7 @@ static int nilfs_btree_propagate(const struct nilfs_bmap *bmap,
19421942
return ret;
19431943
}
19441944

1945-
static int nilfs_btree_propagate_gc(const struct nilfs_bmap *bmap,
1945+
static int nilfs_btree_propagate_gc(struct nilfs_bmap *bmap,
19461946
struct buffer_head *bh)
19471947
{
19481948
return nilfs_dat_mark_dirty(nilfs_bmap_get_dat(bmap), bh->b_blocknr);

‎fs/nilfs2/direct.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ int nilfs_direct_delete_and_convert(struct nilfs_bmap *bmap,
269269
return 0;
270270
}
271271

272-
static int nilfs_direct_propagate(const struct nilfs_bmap *bmap,
272+
static int nilfs_direct_propagate(struct nilfs_bmap *bmap,
273273
struct buffer_head *bh)
274274
{
275275
struct nilfs_direct *direct = (struct nilfs_direct *)bmap;

0 commit comments

Comments
 (0)