patch-2.4.22 linux-2.4.22/drivers/block/loop.c

Next file: linux-2.4.22/drivers/block/nbd.c
Previous file: linux-2.4.22/drivers/block/ll_rw_blk.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/drivers/block/loop.c linux-2.4.22/drivers/block/loop.c
@@ -682,7 +682,7 @@
 	lo->ioctl = NULL;
 	figure_loop_size(lo);
 	lo->old_gfp_mask = inode->i_mapping->gfp_mask;
-	inode->i_mapping->gfp_mask = GFP_NOIO;
+	inode->i_mapping->gfp_mask &= ~(__GFP_IO|__GFP_FS);
 
 	bs = 0;
 	if (blksize_size[MAJOR(lo_device)])
@@ -893,6 +893,7 @@
 		break;
 	case BLKBSZGET:
 	case BLKBSZSET:
+	case BLKSSZGET:
 		err = blk_ioctl(inode->i_rdev, cmd, arg);
 		break;
 	default:

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