[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / 3.2.6 / 0039-udf-Mark-LVID-buffer-as-uptodate-before-marking-it-d.patch
1 From 43f4a516b2f5492bc597f3753b693ad8adc62748 Mon Sep 17 00:00:00 2001
2 From: Jan Kara <jack@suse.cz>
3 Date: Fri, 23 Dec 2011 11:53:07 +0100
4 Subject: [PATCH 39/87] udf: Mark LVID buffer as uptodate before marking it
5 dirty
7 commit 853a0c25baf96b028de1654bea1e0c8857eadf3d upstream.
9 When we hit EIO while writing LVID, the buffer uptodate bit is cleared.
10 This then results in an anoying warning from mark_buffer_dirty() when we
11 write the buffer again. So just set uptodate flag unconditionally.
13 Reviewed-by: Namjae Jeon <linkinjeon@gmail.com>
14 Signed-off-by: Jan Kara <jack@suse.cz>
15 Cc: Dave Jones <davej@redhat.com>
16 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
17 ---
18 fs/udf/super.c | 6 ++++++
19 1 files changed, 6 insertions(+), 0 deletions(-)
21 diff --git a/fs/udf/super.c b/fs/udf/super.c
22 index e185253..87cb24a 100644
23 --- a/fs/udf/super.c
24 +++ b/fs/udf/super.c
25 @@ -1799,6 +1799,12 @@ static void udf_close_lvid(struct super_block *sb)
26 le16_to_cpu(lvid->descTag.descCRCLength)));
28 lvid->descTag.tagChecksum = udf_tag_checksum(&lvid->descTag);
29 + /*
30 + * We set buffer uptodate unconditionally here to avoid spurious
31 + * warnings from mark_buffer_dirty() when previous EIO has marked
32 + * the buffer as !uptodate
33 + */
34 + set_buffer_uptodate(bh);
35 mark_buffer_dirty(bh);
36 sbi->s_lvid_dirty = 0;
37 mutex_unlock(&sbi->s_alloc_mutex);
38 --
39 1.7.7.4