aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/direct.c
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2009-05-21 13:18:36 -0400
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2009-06-10 10:41:10 -0400
commite473c1f265f429427e09531435ceaf0fdbb86d15 (patch)
tree2256e57a923beb7c570f67026b1fd177edb3b9db /fs/nilfs2/direct.c
parentf198dbb9cf580c09644ebdf46846115c6daff14e (diff)
nilfs2: remove pointless NULL check of bpop_commit_alloc_ptr function
This indirect function is set to NULL only for gc cache inodes, but the gc cache inodes never call this function. Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/direct.c')
-rw-r--r--fs/nilfs2/direct.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/nilfs2/direct.c b/fs/nilfs2/direct.c
index 5cbba8284bea..eaeccb068b5e 100644
--- a/fs/nilfs2/direct.c
+++ b/fs/nilfs2/direct.c
@@ -111,9 +111,7 @@ static void nilfs_direct_commit_insert(struct nilfs_direct *direct,
111 bh = (struct buffer_head *)((unsigned long)ptr); 111 bh = (struct buffer_head *)((unsigned long)ptr);
112 set_buffer_nilfs_volatile(bh); 112 set_buffer_nilfs_volatile(bh);
113 113
114 if (direct->d_bmap.b_pops->bpop_commit_alloc_ptr != NULL) 114 direct->d_bmap.b_pops->bpop_commit_alloc_ptr(&direct->d_bmap, req);
115 direct->d_bmap.b_pops->bpop_commit_alloc_ptr(
116 &direct->d_bmap, req);
117 nilfs_direct_set_ptr(direct, key, req->bpr_ptr); 115 nilfs_direct_set_ptr(direct, key, req->bpr_ptr);
118 116
119 if (!nilfs_bmap_dirty(&direct->d_bmap)) 117 if (!nilfs_bmap_dirty(&direct->d_bmap))