linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / fs / hpfs / hpfs_fn.h
index f687d54..6628c3b 100644 (file)
@@ -9,7 +9,6 @@
 //#define DBG
 //#define DEBUG_LOCKS
 
-#include <linux/mutex.h>
 #include <linux/pagemap.h>
 #include <linux/buffer_head.h>
 #include <linux/hpfs_fs.h>
@@ -58,8 +57,8 @@ struct hpfs_inode_info {
        unsigned i_ea_uid : 1;  /* file's uid is stored in ea */
        unsigned i_ea_gid : 1;  /* file's gid is stored in ea */
        unsigned i_dirty : 1;
-       struct mutex i_mutex;
-       struct mutex i_parent_mutex;
+       struct semaphore i_sem;
+       struct semaphore i_parent;
        loff_t **i_rddir_off;
        struct inode vfs_inode;
 };
@@ -240,7 +239,7 @@ void hpfs_set_dentry_operations(struct dentry *);
 /* dir.c */
 
 struct dentry *hpfs_lookup(struct inode *, struct dentry *, struct nameidata *);
-extern const struct file_operations hpfs_dir_ops;
+extern struct file_operations hpfs_dir_ops;
 
 /* dnode.c */
 
@@ -266,9 +265,9 @@ void hpfs_set_ea(struct inode *, struct fnode *, char *, char *, int);
 /* file.c */
 
 int hpfs_file_fsync(struct file *, struct dentry *, int);
-extern const struct file_operations hpfs_file_ops;
+extern struct file_operations hpfs_file_ops;
 extern struct inode_operations hpfs_file_iops;
-extern const struct address_space_operations hpfs_aops;
+extern struct address_space_operations hpfs_aops;
 
 /* inode.c */
 
@@ -304,7 +303,7 @@ void hpfs_decide_conv(struct inode *, unsigned char *, unsigned);
 /* namei.c */
 
 extern struct inode_operations hpfs_dir_iops;
-extern const struct address_space_operations hpfs_symlink_aops;
+extern struct address_space_operations hpfs_symlink_aops;
 
 static inline struct hpfs_inode_info *hpfs_i(struct inode *inode)
 {