patch-2.4.6 linux/fs/reiserfs/journal.c
Next file: linux/fs/reiserfs/namei.c
Previous file: linux/fs/reiserfs/inode.c
Back to the patch index
Back to the overall index
- Lines: 55
- Date:
Fri Jun 29 15:37:16 2001
- Orig file:
v2.4.5/linux/fs/reiserfs/journal.c
- Orig date:
Fri Apr 27 14:18:08 2001
diff -u --recursive --new-file v2.4.5/linux/fs/reiserfs/journal.c linux/fs/reiserfs/journal.c
@@ -128,11 +128,11 @@
struct reiserfs_bitmap_node *bn ;
static int id = 0 ;
- bn = kmalloc(sizeof(struct reiserfs_bitmap_node), GFP_BUFFER) ;
+ bn = kmalloc(sizeof(struct reiserfs_bitmap_node), GFP_NOFS) ;
if (!bn) {
return NULL ;
}
- bn->data = kmalloc(p_s_sb->s_blocksize, GFP_BUFFER) ;
+ bn->data = kmalloc(p_s_sb->s_blocksize, GFP_NOFS) ;
if (!bn->data) {
kfree(bn) ;
return NULL ;
@@ -1492,8 +1492,8 @@
}
trans_id = le32_to_cpu(desc->j_trans_id) ;
/* now we know we've got a good transaction, and it was inside the valid time ranges */
- log_blocks = kmalloc(le32_to_cpu(desc->j_len) * sizeof(struct buffer_head *), GFP_BUFFER) ;
- real_blocks = kmalloc(le32_to_cpu(desc->j_len) * sizeof(struct buffer_head *), GFP_BUFFER) ;
+ log_blocks = kmalloc(le32_to_cpu(desc->j_len) * sizeof(struct buffer_head *), GFP_NOFS) ;
+ real_blocks = kmalloc(le32_to_cpu(desc->j_len) * sizeof(struct buffer_head *), GFP_NOFS) ;
if (!log_blocks || !real_blocks) {
brelse(c_bh) ;
brelse(d_bh) ;
@@ -1786,10 +1786,10 @@
static void commit_flush_async(struct super_block *p_s_sb, int jindex) {
struct reiserfs_journal_commit_task *ct ;
- /* using GFP_BUFFER, GFP_KERNEL could try to flush inodes, which will try
+ /* using GFP_NOFS, GFP_KERNEL could try to flush inodes, which will try
** to start/join a transaction, which will deadlock
*/
- ct = kmalloc(sizeof(struct reiserfs_journal_commit_task), GFP_BUFFER) ;
+ ct = kmalloc(sizeof(struct reiserfs_journal_commit_task), GFP_NOFS) ;
if (ct) {
setup_commit_task_arg(ct, p_s_sb, jindex) ;
queue_task(&(ct->task), &reiserfs_commit_thread_tq);
@@ -2553,6 +2553,7 @@
bh = get_hash_table(p_s_sb->s_dev, blocknr, p_s_sb->s_blocksize) ;
/* if it is journal new, we just remove it from this transaction */
if (bh && buffer_journal_new(bh)) {
+ mark_buffer_notjournal_new(bh) ;
clear_prepared_bits(bh) ;
cleaned = remove_from_transaction(p_s_sb, blocknr, cleaned) ;
} else {
@@ -2885,7 +2886,7 @@
#endif
get_page(bh->b_page) ;
- new_pl = reiserfs_kmalloc(sizeof(struct reiserfs_page_list), GFP_BUFFER,
+ new_pl = reiserfs_kmalloc(sizeof(struct reiserfs_page_list), GFP_NOFS,
inode->i_sb) ;
if (!new_pl) {
put_page(bh->b_page) ;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)