From: Jan Kara Date: Thu, 20 Aug 2015 12:50:07 +0000 (+0200) Subject: udf: Don't modify filesystem for read-only mounts X-Git-Tag: omap-for-v4.3/fixes-rc1~108^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9181f8bf5abf4b9d59b12e878895375b84fe32ba;p=pandora-kernel.git udf: Don't modify filesystem for read-only mounts When read-write mount of a filesystem is requested but we find out we can mount the filesystem only in read-only mode, we still modify LVID in udf_close_lvid(). That is both unnecessary and contrary to expectation that when we fall back to read-only mount we don't modify the filesystem. Make sure we call udf_close_lvid() only if we called udf_open_lvid() so that filesystem gets modified only if we verified we are allowed to write to it. Reported-by: Karel Zak Signed-off-by: Jan Kara --- Reading git-diff-tree failed