aboutsummaryrefslogtreecommitdiffstats
path: root/fs/udf/super.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2019-02-19 08:59:43 -0500
committerJan Kara <jack@suse.cz>2019-02-21 13:25:36 -0500
commit52b9666efd8b0874d334de718a7d561e7b0eb1cc (patch)
treea583ede10c8506825c2a8a6d7bccc1e6d66b441a /fs/udf/super.c
parent93bc420ed41df63a18ae794101f7cbf45226a6ef (diff)
udf: Drop pointless check from udf_sync_fs()
The check if (bh) in udf_sync_fs() is pointless as we cannot have sbi->s_lvid_dirty and !sbi->s_lvid_bh (as already asserted by udf_updated_lvid()). So just drop the pointless check. Reviewed-by: Steven J. Magnani <steve@digidescorp.com> Reported-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/super.c')
-rw-r--r--fs/udf/super.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c
index a6940d90bedd..ffd8038ff728 100644
--- a/fs/udf/super.c
+++ b/fs/udf/super.c
@@ -2330,13 +2330,10 @@ static int udf_sync_fs(struct super_block *sb, int wait)
2330 mutex_lock(&sbi->s_alloc_mutex); 2330 mutex_lock(&sbi->s_alloc_mutex);
2331 if (sbi->s_lvid_dirty) { 2331 if (sbi->s_lvid_dirty) {
2332 struct buffer_head *bh = sbi->s_lvid_bh; 2332 struct buffer_head *bh = sbi->s_lvid_bh;
2333 struct logicalVolIntegrityDesc *lvid;
2333 2334
2334 if (bh) { 2335 lvid = (struct logicalVolIntegrityDesc *)bh->b_data;
2335 struct logicalVolIntegrityDesc *lvid; 2336 udf_finalize_lvid(lvid);
2336
2337 lvid = (struct logicalVolIntegrityDesc *)bh->b_data;
2338 udf_finalize_lvid(lvid);
2339 }
2340 2337
2341 /* 2338 /*
2342 * Blockdevice will be synced later so we don't have to submit 2339 * Blockdevice will be synced later so we don't have to submit