Commit a49058fa authored by Gioh Kim's avatar Gioh Kim Committed by Theodore Ts'o

jbd/jbd2: use non-movable memory for the jbd superblock

Sicne the jbd/jbd2 superblock is not released until the file system is
unmounted, allocate the buffer cache from the non-moveable area to
allow page migration and CMA allocations to more easily succeed.
Signed-off-by: default avatarGioh Kim <gioh.kim@lge.com>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
parent a8ac900b
...@@ -886,7 +886,7 @@ journal_t * journal_init_inode (struct inode *inode) ...@@ -886,7 +886,7 @@ journal_t * journal_init_inode (struct inode *inode)
goto out_err; goto out_err;
} }
bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); bh = getblk_unmovable(journal->j_dev, blocknr, journal->j_blocksize);
if (!bh) { if (!bh) {
printk(KERN_ERR printk(KERN_ERR
"%s: Cannot get buffer for journal superblock\n", "%s: Cannot get buffer for journal superblock\n",
......
...@@ -1237,7 +1237,7 @@ journal_t * jbd2_journal_init_inode (struct inode *inode) ...@@ -1237,7 +1237,7 @@ journal_t * jbd2_journal_init_inode (struct inode *inode)
goto out_err; goto out_err;
} }
bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); bh = getblk_unmovable(journal->j_dev, blocknr, journal->j_blocksize);
if (!bh) { if (!bh) {
printk(KERN_ERR printk(KERN_ERR
"%s: Cannot get buffer for journal superblock\n", "%s: Cannot get buffer for journal superblock\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment