]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/ocfs2/file.c
ocfs2: Fix deadlock when allocating page
[net-next-2.6.git] / fs / ocfs2 / file.c
index 6b2be0f2eacd3f451a00fee1897f415312a88720..2caa3a7a1a39291bddd6208123858ea67ee9c43b 100644 (file)
@@ -783,7 +783,7 @@ static int ocfs2_write_zero_page(struct inode *inode, u64 abs_from,
        BUG_ON(abs_to > (((u64)index + 1) << PAGE_CACHE_SHIFT));
        BUG_ON(abs_from & (inode->i_blkbits - 1));
 
-       page = grab_cache_page(mapping, index);
+       page = find_or_create_page(mapping, index, GFP_NOFS);
        if (!page) {
                ret = -ENOMEM;
                mlog_errno(ret);