X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fkernel_patches%2Fpatches%2Fdev_read_only-2.6-fc5.patch;h=19cfce61b83e11a919a35bbc2649215365d3f05f;hp=c5ceee0d6dab8d13d6de5be6140ce0a5f8ed9a85;hb=2ececcfb12ea2d5ce7fd26c0c702f0c5be555d1f;hpb=833d7a14e361ac9a92e26d110b9d7e542856c1b7 diff --git a/lustre/kernel_patches/patches/dev_read_only-2.6-fc5.patch b/lustre/kernel_patches/patches/dev_read_only-2.6-fc5.patch index c5ceee0..19cfce6 100644 --- a/lustre/kernel_patches/patches/dev_read_only-2.6-fc5.patch +++ b/lustre/kernel_patches/patches/dev_read_only-2.6-fc5.patch @@ -17,7 +17,7 @@ Index: linux-2.6.16.i686/block/ll_rw_blk.c goto end_io; + /* this is cfs's dev_rdonly check */ -+ if (bio->bi_rw == WRITE && dev_check_rdonly(bio->bi_bdev)) { ++ if (bio_rw(bio) == WRITE && dev_check_rdonly(bio->bi_bdev)) { + struct block_device *bdev = bio->bi_bdev; + + printk(KERN_WARNING "Write to readonly device %s (%#x) "