aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/btnode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nilfs2/btnode.c')
-rw-r--r--fs/nilfs2/btnode.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/fs/nilfs2/btnode.c b/fs/nilfs2/btnode.c
index 59658f08d289..471e269536ae 100644
--- a/fs/nilfs2/btnode.c
+++ b/fs/nilfs2/btnode.c
@@ -147,27 +147,6 @@ out_locked:
147 return err; 147 return err;
148} 148}
149 149
150int nilfs_btnode_get(struct address_space *btnc, __u64 blocknr,
151 sector_t pblocknr, struct buffer_head **pbh)
152{
153 struct buffer_head *bh;
154 int err;
155
156 err = nilfs_btnode_submit_block(btnc, blocknr, pblocknr, pbh);
157 if (err == -EEXIST) /* internal code (cache hit) */
158 return 0;
159 if (unlikely(err))
160 return err;
161
162 bh = *pbh;
163 wait_on_buffer(bh);
164 if (!buffer_uptodate(bh)) {
165 brelse(bh);
166 return -EIO;
167 }
168 return 0;
169}
170
171/** 150/**
172 * nilfs_btnode_delete - delete B-tree node buffer 151 * nilfs_btnode_delete - delete B-tree node buffer
173 * @bh: buffer to be deleted 152 * @bh: buffer to be deleted