diff options
author | Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> | 2011-05-08 14:43:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-09 12:04:23 -0400 |
commit | 7d23ce36e3f52f9b83ac8da49296b73339c8b5b8 (patch) | |
tree | 0c3973efa632e3c58d056c5d949a38b4c475193f /fs/hpfs/hpfs_fn.h | |
parent | 7dd29d8d865efdb00c0542a5d2c87af8c52ea6c7 (diff) |
HPFS: Remove remaining locks
Remove remaining locks
Because of a new global per-fs lock, no other locks are needed
Signed-off-by: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/hpfs/hpfs_fn.h')
-rw-r--r-- | fs/hpfs/hpfs_fn.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/fs/hpfs/hpfs_fn.h b/fs/hpfs/hpfs_fn.h index 89a4714b44c7..860d09f199b2 100644 --- a/fs/hpfs/hpfs_fn.h +++ b/fs/hpfs/hpfs_fn.h | |||
@@ -56,8 +56,6 @@ struct hpfs_inode_info { | |||
56 | unsigned i_ea_uid : 1; /* file's uid is stored in ea */ | 56 | unsigned i_ea_uid : 1; /* file's uid is stored in ea */ |
57 | unsigned i_ea_gid : 1; /* file's gid is stored in ea */ | 57 | unsigned i_ea_gid : 1; /* file's gid is stored in ea */ |
58 | unsigned i_dirty : 1; | 58 | unsigned i_dirty : 1; |
59 | struct mutex i_mutex; | ||
60 | struct mutex i_parent_mutex; | ||
61 | loff_t **i_rddir_off; | 59 | loff_t **i_rddir_off; |
62 | struct inode vfs_inode; | 60 | struct inode vfs_inode; |
63 | }; | 61 | }; |
@@ -88,8 +86,6 @@ struct hpfs_sb_info { | |||
88 | unsigned *sb_bmp_dir; /* main bitmap directory */ | 86 | unsigned *sb_bmp_dir; /* main bitmap directory */ |
89 | unsigned sb_c_bitmap; /* current bitmap */ | 87 | unsigned sb_c_bitmap; /* current bitmap */ |
90 | unsigned sb_max_fwd_alloc; /* max forwad allocation */ | 88 | unsigned sb_max_fwd_alloc; /* max forwad allocation */ |
91 | struct mutex hpfs_creation_de; /* when creating dirents, nobody else | ||
92 | can alloc blocks */ | ||
93 | /*unsigned sb_mounting : 1;*/ | 89 | /*unsigned sb_mounting : 1;*/ |
94 | int sb_timeshift; | 90 | int sb_timeshift; |
95 | }; | 91 | }; |
@@ -201,12 +197,12 @@ static inline unsigned tstbits(unsigned *bmp, unsigned b, unsigned n) | |||
201 | /* alloc.c */ | 197 | /* alloc.c */ |
202 | 198 | ||
203 | int hpfs_chk_sectors(struct super_block *, secno, int, char *); | 199 | int hpfs_chk_sectors(struct super_block *, secno, int, char *); |
204 | secno hpfs_alloc_sector(struct super_block *, secno, unsigned, int, int); | 200 | secno hpfs_alloc_sector(struct super_block *, secno, unsigned, int); |
205 | int hpfs_alloc_if_possible(struct super_block *, secno); | 201 | int hpfs_alloc_if_possible(struct super_block *, secno); |
206 | void hpfs_free_sectors(struct super_block *, secno, unsigned); | 202 | void hpfs_free_sectors(struct super_block *, secno, unsigned); |
207 | int hpfs_check_free_dnodes(struct super_block *, int); | 203 | int hpfs_check_free_dnodes(struct super_block *, int); |
208 | void hpfs_free_dnode(struct super_block *, secno); | 204 | void hpfs_free_dnode(struct super_block *, secno); |
209 | struct dnode *hpfs_alloc_dnode(struct super_block *, secno, dnode_secno *, struct quad_buffer_head *, int); | 205 | struct dnode *hpfs_alloc_dnode(struct super_block *, secno, dnode_secno *, struct quad_buffer_head *); |
210 | struct fnode *hpfs_alloc_fnode(struct super_block *, secno, fnode_secno *, struct buffer_head **); | 206 | struct fnode *hpfs_alloc_fnode(struct super_block *, secno, fnode_secno *, struct buffer_head **); |
211 | struct anode *hpfs_alloc_anode(struct super_block *, secno, anode_secno *, struct buffer_head **); | 207 | struct anode *hpfs_alloc_anode(struct super_block *, secno, anode_secno *, struct buffer_head **); |
212 | 208 | ||
@@ -223,8 +219,6 @@ void hpfs_remove_fnode(struct super_block *, fnode_secno fno); | |||
223 | 219 | ||
224 | /* buffer.c */ | 220 | /* buffer.c */ |
225 | 221 | ||
226 | void hpfs_lock_creation(struct super_block *); | ||
227 | void hpfs_unlock_creation(struct super_block *); | ||
228 | void *hpfs_map_sector(struct super_block *, unsigned, struct buffer_head **, int); | 222 | void *hpfs_map_sector(struct super_block *, unsigned, struct buffer_head **, int); |
229 | void *hpfs_get_sector(struct super_block *, unsigned, struct buffer_head **); | 223 | void *hpfs_get_sector(struct super_block *, unsigned, struct buffer_head **); |
230 | void *hpfs_map_4sectors(struct super_block *, unsigned, struct quad_buffer_head *, int); | 224 | void *hpfs_map_4sectors(struct super_block *, unsigned, struct quad_buffer_head *, int); |
@@ -248,7 +242,7 @@ void hpfs_del_pos(struct inode *, loff_t *); | |||
248 | struct hpfs_dirent *hpfs_add_de(struct super_block *, struct dnode *, | 242 | struct hpfs_dirent *hpfs_add_de(struct super_block *, struct dnode *, |
249 | const unsigned char *, unsigned, secno); | 243 | const unsigned char *, unsigned, secno); |
250 | int hpfs_add_dirent(struct inode *, const unsigned char *, unsigned, | 244 | int hpfs_add_dirent(struct inode *, const unsigned char *, unsigned, |
251 | struct hpfs_dirent *, int); | 245 | struct hpfs_dirent *); |
252 | int hpfs_remove_dirent(struct inode *, dnode_secno, struct hpfs_dirent *, struct quad_buffer_head *, int); | 246 | int hpfs_remove_dirent(struct inode *, dnode_secno, struct hpfs_dirent *, struct quad_buffer_head *, int); |
253 | void hpfs_count_dnodes(struct super_block *, dnode_secno, int *, int *, int *); | 247 | void hpfs_count_dnodes(struct super_block *, dnode_secno, int *, int *, int *); |
254 | dnode_secno hpfs_de_as_down_as_possible(struct super_block *, dnode_secno dno); | 248 | dnode_secno hpfs_de_as_down_as_possible(struct super_block *, dnode_secno dno); |