diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /fs/jbd/commit.c | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'fs/jbd/commit.c')
-rw-r--r-- | fs/jbd/commit.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/fs/jbd/commit.c b/fs/jbd/commit.c index 4bd882548c45..ecb44c94ba8d 100644 --- a/fs/jbd/commit.c +++ b/fs/jbd/commit.c | |||
@@ -17,7 +17,6 @@ | |||
17 | #include <linux/fs.h> | 17 | #include <linux/fs.h> |
18 | #include <linux/jbd.h> | 18 | #include <linux/jbd.h> |
19 | #include <linux/errno.h> | 19 | #include <linux/errno.h> |
20 | #include <linux/slab.h> | ||
21 | #include <linux/mm.h> | 20 | #include <linux/mm.h> |
22 | #include <linux/pagemap.h> | 21 | #include <linux/pagemap.h> |
23 | #include <linux/bio.h> | 22 | #include <linux/bio.h> |
@@ -862,12 +861,12 @@ restart_loop: | |||
862 | /* A buffer which has been freed while still being | 861 | /* A buffer which has been freed while still being |
863 | * journaled by a previous transaction may end up still | 862 | * journaled by a previous transaction may end up still |
864 | * being dirty here, but we want to avoid writing back | 863 | * being dirty here, but we want to avoid writing back |
865 | * that buffer in the future now that the last use has | 864 | * that buffer in the future after the "add to orphan" |
866 | * been committed. That's not only a performance gain, | 865 | * operation been committed, That's not only a performance |
867 | * it also stops aliasing problems if the buffer is left | 866 | * gain, it also stops aliasing problems if the buffer is |
868 | * behind for writeback and gets reallocated for another | 867 | * left behind for writeback and gets reallocated for another |
869 | * use in a different page. */ | 868 | * use in a different page. */ |
870 | if (buffer_freed(bh)) { | 869 | if (buffer_freed(bh) && !jh->b_next_transaction) { |
871 | clear_buffer_freed(bh); | 870 | clear_buffer_freed(bh); |
872 | clear_buffer_jbddirty(bh); | 871 | clear_buffer_jbddirty(bh); |
873 | } | 872 | } |