Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 229145
b: refs/heads/master
c: 949f4a7
h: refs/heads/master
i:
  229143: 04b88d5
v: v3
  • Loading branch information
Jan Kara committed Jan 6, 2011
1 parent a23b98c commit 3334442
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d664b6af609ecf5e7dcedf92f0bf188e3a29b3e0
refs/heads/master: 949f4a7c08bc4a050eae7aeeac3e6d019d1feafb
5 changes: 5 additions & 0 deletions trunk/fs/udf/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1773,6 +1773,8 @@ static void udf_open_lvid(struct super_block *sb)

if (!bh)
return;

mutex_lock(&sbi->s_alloc_mutex);
lvid = (struct logicalVolIntegrityDesc *)bh->b_data;
lvidiu = udf_sb_lvidiu(sbi);

Expand All @@ -1789,6 +1791,7 @@ static void udf_open_lvid(struct super_block *sb)
lvid->descTag.tagChecksum = udf_tag_checksum(&lvid->descTag);
mark_buffer_dirty(bh);
sbi->s_lvid_dirty = 0;
mutex_unlock(&sbi->s_alloc_mutex);
}

static void udf_close_lvid(struct super_block *sb)
Expand All @@ -1801,6 +1804,7 @@ static void udf_close_lvid(struct super_block *sb)
if (!bh)
return;

mutex_lock(&sbi->s_alloc_mutex);
lvid = (struct logicalVolIntegrityDesc *)bh->b_data;
lvidiu = udf_sb_lvidiu(sbi);
lvidiu->impIdent.identSuffix[0] = UDF_OS_CLASS_UNIX;
Expand All @@ -1821,6 +1825,7 @@ static void udf_close_lvid(struct super_block *sb)
lvid->descTag.tagChecksum = udf_tag_checksum(&lvid->descTag);
mark_buffer_dirty(bh);
sbi->s_lvid_dirty = 0;
mutex_unlock(&sbi->s_alloc_mutex);
}

u64 lvid_get_unique_id(struct super_block *sb)
Expand Down

0 comments on commit 3334442

Please sign in to comment.