Message ID | 20090214080733.99D5311D10A@picon.linux-foundation.org |
---|---|
State | Superseded, archived |
Headers | show |
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index f743524..c80e038 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -2495,7 +2495,10 @@ static int ext4_da_writepages(struct address_space *mapping, wbc->range_end = LLONG_MAX; wbc->range_cyclic = 0; range_cyclic = 1; - cycled = 0; + if (index == 0) + cycled = 1; + else + cycled = 0; } else index = wbc->range_start >> PAGE_CACHE_SHIFT;