edit commit description
[ext4-patch-queue.git] / remove-extra-unlock-page
blobf593e549cba2a44dad26a6c47ba5dc4f7f640e61
1 ext4 crypto: remove extra unlock_page()
3 From: Michael Halcrow <mhalcrow@google.com>
5 This unlock was mistakenly duplicated during a previous refactor. It
6 races with other page locks to result in several BUG_ON(!PageLocked())
7 instances to get hit.
9 Signed-off-by: Michael Halcrow <mhalcrow@google.com>
10 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
11 ---
12  fs/ext4/page-io.c | 1 -
13  1 file changed, 1 deletion(-)
15 diff --git a/fs/ext4/page-io.c b/fs/ext4/page-io.c
16 index 872503d..918726a 100644
17 --- a/fs/ext4/page-io.c
18 +++ b/fs/ext4/page-io.c
19 @@ -598,6 +598,5 @@ int ext4_bio_write_page(struct ext4_io_submit *io,
20                 ret = ext4_bio_encrypt_and_write(io, page, wbc);
21         else
22                 ret = ext4_bio_write_buffers(io, page, NULL, len, wbc);
23 -       unlock_page(page);
24         return ret;
25  }