Whamcloud - gitweb
Modified ChangeLog entry.
[fs/lustre-release.git] / lustre / kernel_patches / patches / linux-2.4.24-jbd-handle-EIO-rhel3.patch
1 diff -X /home/nikita/src/linux-git/linux-2.6.git/Documentation/dontdiff -rupbB linux-2.4.24.orig/fs/jbd/commit.c linux-2.4.24/fs/jbd/commit.c
2 --- linux-2.4.24.orig/fs/jbd/commit.c   2005-06-23 17:39:32.000000000 +0400
3 +++ linux-2.4.24/fs/jbd/commit.c        2005-06-23 15:56:05.000000000 +0400
4 @@ -505,6 +505,9 @@ start_journal_io:
5                         goto wait_for_iobuf;
6                 }
7  
8 +               if (unlikely(!buffer_uptodate(bh)))
9 +                       err = -EIO;
10 +
11                 clear_bit(BH_JWrite, &jh2bh(jh)->b_state);
12  
13                 JBUFFER_TRACE(jh, "ph4: unfile after journal write");
14 @@ -566,6 +569,9 @@ start_journal_io:
15                         goto wait_for_ctlbuf;
16                 }
17  
18 +               if (unlikely(!buffer_uptodate(bh)))
19 +                       err = -EIO;
20 +
21                 BUFFER_TRACE(bh, "ph5: control buffer writeout done: unfile");
22                 clear_bit(BH_JWrite, &bh->b_state);
23                 journal_unfile_buffer(jh);