aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/aops.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2/aops.c')
-rw-r--r--fs/ocfs2/aops.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index 5fc27cfaee50..ac8c39055717 100644
--- a/fs/ocfs2/aops.c
+++ b/fs/ocfs2/aops.c
@@ -275,7 +275,7 @@ static int ocfs2_readpage(struct file *file, struct page *page)
275 275
276 mlog_entry("(0x%p, %lu)\n", file, (page ? page->index : 0)); 276 mlog_entry("(0x%p, %lu)\n", file, (page ? page->index : 0));
277 277
278 ret = ocfs2_meta_lock_with_page(inode, NULL, 0, page); 278 ret = ocfs2_inode_lock_with_page(inode, NULL, 0, page);
279 if (ret != 0) { 279 if (ret != 0) {
280 if (ret == AOP_TRUNCATED_PAGE) 280 if (ret == AOP_TRUNCATED_PAGE)
281 unlock = 0; 281 unlock = 0;
@@ -285,7 +285,7 @@ static int ocfs2_readpage(struct file *file, struct page *page)
285 285
286 if (down_read_trylock(&oi->ip_alloc_sem) == 0) { 286 if (down_read_trylock(&oi->ip_alloc_sem) == 0) {
287 ret = AOP_TRUNCATED_PAGE; 287 ret = AOP_TRUNCATED_PAGE;
288 goto out_meta_unlock; 288 goto out_inode_unlock;
289 } 289 }
290 290
291 /* 291 /*
@@ -313,8 +313,8 @@ static int ocfs2_readpage(struct file *file, struct page *page)
313 313
314out_alloc: 314out_alloc:
315 up_read(&OCFS2_I(inode)->ip_alloc_sem); 315 up_read(&OCFS2_I(inode)->ip_alloc_sem);
316out_meta_unlock: 316out_inode_unlock:
317 ocfs2_meta_unlock(inode, 0); 317 ocfs2_inode_unlock(inode, 0);
318out: 318out:
319 if (unlock) 319 if (unlock)
320 unlock_page(page); 320 unlock_page(page);
@@ -443,7 +443,7 @@ static sector_t ocfs2_bmap(struct address_space *mapping, sector_t block)
443 * accessed concurrently from multiple nodes. 443 * accessed concurrently from multiple nodes.
444 */ 444 */
445 if (!INODE_JOURNAL(inode)) { 445 if (!INODE_JOURNAL(inode)) {
446 err = ocfs2_meta_lock(inode, NULL, 0); 446 err = ocfs2_inode_lock(inode, NULL, 0);
447 if (err) { 447 if (err) {
448 if (err != -ENOENT) 448 if (err != -ENOENT)
449 mlog_errno(err); 449 mlog_errno(err);
@@ -458,7 +458,7 @@ static sector_t ocfs2_bmap(struct address_space *mapping, sector_t block)
458 458
459 if (!INODE_JOURNAL(inode)) { 459 if (!INODE_JOURNAL(inode)) {
460 up_read(&OCFS2_I(inode)->ip_alloc_sem); 460 up_read(&OCFS2_I(inode)->ip_alloc_sem);
461 ocfs2_meta_unlock(inode, 0); 461 ocfs2_inode_unlock(inode, 0);
462 } 462 }
463 463
464 if (err) { 464 if (err) {
@@ -1723,7 +1723,7 @@ static int ocfs2_write_begin(struct file *file, struct address_space *mapping,
1723 struct buffer_head *di_bh = NULL; 1723 struct buffer_head *di_bh = NULL;
1724 struct inode *inode = mapping->host; 1724 struct inode *inode = mapping->host;
1725 1725
1726 ret = ocfs2_meta_lock(inode, &di_bh, 1); 1726 ret = ocfs2_inode_lock(inode, &di_bh, 1);
1727 if (ret) { 1727 if (ret) {
1728 mlog_errno(ret); 1728 mlog_errno(ret);
1729 return ret; 1729 return ret;
@@ -1753,7 +1753,7 @@ out_fail:
1753 up_write(&OCFS2_I(inode)->ip_alloc_sem); 1753 up_write(&OCFS2_I(inode)->ip_alloc_sem);
1754 1754
1755 brelse(di_bh); 1755 brelse(di_bh);
1756 ocfs2_meta_unlock(inode, 1); 1756 ocfs2_inode_unlock(inode, 1);
1757 1757
1758 return ret; 1758 return ret;
1759} 1759}
@@ -1870,7 +1870,7 @@ static int ocfs2_write_end(struct file *file, struct address_space *mapping,
1870 ret = ocfs2_write_end_nolock(mapping, pos, len, copied, page, fsdata); 1870 ret = ocfs2_write_end_nolock(mapping, pos, len, copied, page, fsdata);
1871 1871
1872 up_write(&OCFS2_I(inode)->ip_alloc_sem); 1872 up_write(&OCFS2_I(inode)->ip_alloc_sem);
1873 ocfs2_meta_unlock(inode, 1); 1873 ocfs2_inode_unlock(inode, 1);
1874 1874
1875 return ret; 1875 return ret;
1876} 1876}