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.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/nilfs2/btnode.c b/fs/nilfs2/btnode.c
index a35ae35e6932..e0c9daf9aa22 100644
--- a/fs/nilfs2/btnode.c
+++ b/fs/nilfs2/btnode.c
@@ -62,7 +62,7 @@ nilfs_btnode_create_block(struct address_space *btnc, __u64 blocknr)
62 set_buffer_uptodate(bh); 62 set_buffer_uptodate(bh);
63 63
64 unlock_page(bh->b_page); 64 unlock_page(bh->b_page);
65 page_cache_release(bh->b_page); 65 put_page(bh->b_page);
66 return bh; 66 return bh;
67} 67}
68 68
@@ -128,7 +128,7 @@ found:
128 128
129out_locked: 129out_locked:
130 unlock_page(page); 130 unlock_page(page);
131 page_cache_release(page); 131 put_page(page);
132 return err; 132 return err;
133} 133}
134 134
@@ -146,7 +146,7 @@ void nilfs_btnode_delete(struct buffer_head *bh)
146 pgoff_t index = page_index(page); 146 pgoff_t index = page_index(page);
147 int still_dirty; 147 int still_dirty;
148 148
149 page_cache_get(page); 149 get_page(page);
150 lock_page(page); 150 lock_page(page);
151 wait_on_page_writeback(page); 151 wait_on_page_writeback(page);
152 152
@@ -154,7 +154,7 @@ void nilfs_btnode_delete(struct buffer_head *bh)
154 still_dirty = PageDirty(page); 154 still_dirty = PageDirty(page);
155 mapping = page->mapping; 155 mapping = page->mapping;
156 unlock_page(page); 156 unlock_page(page);
157 page_cache_release(page); 157 put_page(page);
158 158
159 if (!still_dirty && mapping) 159 if (!still_dirty && mapping)
160 invalidate_inode_pages2_range(mapping, index, index); 160 invalidate_inode_pages2_range(mapping, index, index);
@@ -181,7 +181,7 @@ int nilfs_btnode_prepare_change_key(struct address_space *btnc,
181 obh = ctxt->bh; 181 obh = ctxt->bh;
182 ctxt->newbh = NULL; 182 ctxt->newbh = NULL;
183 183
184 if (inode->i_blkbits == PAGE_CACHE_SHIFT) { 184 if (inode->i_blkbits == PAGE_SHIFT) {
185 lock_page(obh->b_page); 185 lock_page(obh->b_page);
186 /* 186 /*
187 * We cannot call radix_tree_preload for the kernels older 187 * We cannot call radix_tree_preload for the kernels older