udf: Move handling of uniqueID into a helper function and protect it by a s_alloc_mutex
commitd664b6af609ecf5e7dcedf92f0bf188e3a29b3e0
authorJan Kara <jack@suse.cz>
Wed, 20 Oct 2010 16:28:46 +0000 (20 18:28 +0200)
committerJan Kara <jack@suse.cz>
Thu, 6 Jan 2011 16:03:55 +0000 (6 17:03 +0100)
tree865eb1db44abdceefea52e46117af61051b610e8
parent49521de119d326d04fb3736ab827e12e1de966d0
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>
fs/udf/ialloc.c
fs/udf/namei.c
fs/udf/super.c
fs/udf/udfdecl.h