udf: Replace bkl with the UDF_I(inode)->i_data_sem for protect udf_inode_info struct
authorAlessio Igor Bogani <abogani@texware.it>
Tue, 16 Nov 2010 17:40:47 +0000 (18:40 +0100)
committerJan Kara <jack@suse.cz>
Thu, 6 Jan 2011 16:03:56 +0000 (17:03 +0100)
commit4d0fb621d35007c19a396f2bb629e5aeaacef2d0
tree92f6e0d3c38c15b0af507bd4b6d3353e34a337a9
parentd1668fe390c1e84580575965684a8fa7e4626dee
udf: Replace bkl with the UDF_I(inode)->i_data_sem for protect udf_inode_info struct

Replace bkl with the UDF_I(inode)->i_data_sem rw semaphore in
udf_release_file(), udf_symlink(), udf_symlink_filler(), udf_get_block(),
udf_block_map(), and udf_setattr(). The rule now is that any operation
on regular file's or symlink's extents (or generally allocation information
including goal block) needs to hold i_data_sem.

This work was supported by a hardware donation from the CE Linux Forum.

Signed-off-by: Alessio Igor Bogani <abogani@texware.it>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/file.c
fs/udf/inode.c
fs/udf/namei.c
fs/udf/super.c
fs/udf/symlink.c
fs/udf/udf_i.h