udf: Move handling of uniqueID into a helper function and protect it by a s_alloc_mutex
uniqueID handling has been duplicated in three places. Move it into a common helper. Since we modify an LVID buffer with uniqueID update, we take sbi->s_alloc_mutex to protect agaist other modifications of the structure. Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
@@ -125,6 +125,7 @@ static inline void udf_updated_lvid(struct super_block *sb)
|
||||
sb->s_dirt = 1;
|
||||
UDF_SB(sb)->s_lvid_dirty = 1;
|
||||
}
|
||||
extern u64 lvid_get_unique_id(struct super_block *sb);
|
||||
|
||||
/* namei.c */
|
||||
extern int udf_write_fi(struct inode *inode, struct fileIdentDesc *,
|
||||
|
Reference in New Issue
Block a user