patch-2.4.6 linux/fs/reiserfs/namei.c

Next file: linux/fs/reiserfs/stree.c
Previous file: linux/fs/reiserfs/journal.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.5/linux/fs/reiserfs/namei.c linux/fs/reiserfs/namei.c
@@ -437,7 +437,7 @@
     /* get memory for composing the entry */
     buflen = DEH_SIZE + ROUND_UP (namelen);
     if (buflen > sizeof (small_buf)) {
-	buffer = reiserfs_kmalloc (buflen, GFP_BUFFER, dir->i_sb);
+	buffer = reiserfs_kmalloc (buflen, GFP_NOFS, dir->i_sb);
 	if (buffer == 0)
 	    return -ENOMEM;
     } else
@@ -878,7 +878,7 @@
 	return -ENAMETOOLONG;
     }
   
-    name = kmalloc (item_len, GFP_BUFFER);
+    name = kmalloc (item_len, GFP_NOFS);
     if (!name) {
 	iput(inode) ;
 	return -ENOMEM;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)