home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 August - Disc 2 / chip_20018102_hu.iso / linux / kernel / linux-2.4.5-reiserfs-umount-fix.patch < prev    next >
Text File  |  2001-06-15  |  623b  |  22 lines

  1. diff -urN v2.4.5/fs/reiserfs/super.c linux/fs/reiserfs/super.c
  2. --- v2.4.5/fs/reiserfs/super.c    Sun Apr 29 16:02:25 2001
  3. +++ linux/fs/reiserfs/super.c    Sat May 26 19:10:16 2001
  4. @@ -104,7 +104,8 @@
  5.  {
  6.    int i;
  7.    struct reiserfs_transaction_handle th ;
  8. -  
  9. +
  10. +  lock_kernel() ;  
  11.    /* change file system state to current state if it was mounted with read-write permissions */
  12.    if (!(s->s_flags & MS_RDONLY)) {
  13.      journal_begin(&th, s, 10) ;
  14. @@ -117,6 +118,7 @@
  15.    ** to do a journal_end
  16.    */
  17.    journal_release(&th, s) ;
  18. +  unlock_kernel() ;
  19.  
  20.    for (i = 0; i < SB_BMAP_NR (s); i ++)
  21.      brelse (SB_AP_BITMAP (s)[i]);
  22.