Whamcloud - gitweb
- merge 2 weeks of b1_4 fixes onto HEAD
[fs/lustre-release.git] / lustre / kernel_patches / patches / loop-sync-2.4.21-suse.patch
1 --- drivers/block/loop.c.bu     2004-05-11 16:27:23.000000000 -0700
2 +++ drivers/block/loop.c        2004-05-11 16:28:50.000000000 -0700
3 @@ -978,7 +978,7 @@ static int lo_release(struct inode *inod
4  
5         lo = &loop_dev[dev];
6  
7 -       if (!(lo->lo_flags & LO_FLAGS_READ_ONLY)) {
8 +       if (!(lo->lo_flags & LO_FLAGS_READ_ONLY) && lo->lo_device != 0) {
9                 fsync_dev(lo->lo_device);
10                 invalidate_buffers(lo->lo_device);
11         }