edit commit description
[ext4-patch-queue.git] / enable-delayed-allocation
blob81d0b6e5afc59fab0f80a21c9fefbecb9fdc1fad
1 ext4 crypto: enables delayed allocation
3 From: Michael Halcrow <mhalcrow@google.com>
5 I had delayed allocation disabled because it seemed like the
6 conservative/safe thing to do during initial development of the
7 feature. However, it seems that we don't have much (if anything) to do
8 to support delayed allocation with encryption, so I'm re-enabling that
9 code path for further test and development.
11 Signed-off-by: Michael Halcrow <mhalcrow@google.com>
12 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
13 ---
14  fs/ext4/inode.c | 2 +-
15  1 file changed, 1 insertion(+), 1 deletion(-)
17 diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
18 index 8b654c1..631c635 100644
19 --- a/fs/ext4/inode.c
20 +++ b/fs/ext4/inode.c
21 @@ -2309,7 +2309,7 @@ static int ext4_writepages(struct address_space *mapping,
22         if (!mapping->nrpages || !mapping_tagged(mapping, PAGECACHE_TAG_DIRTY))
23                 goto out_writepages;
25 -       if (ext4_should_journal_data(inode) || ext4_is_encryption_enabled(ei)) {
26 +       if (ext4_should_journal_data(inode)) {
27                 struct blk_plug plug;
29                 blk_start_plug(&plug);
30 -- 
31 2.1.0.rc2.206.gedb03e5