diff options
Diffstat (limited to 'include/linux/reiserfs_xattr.h')
-rw-r--r-- | include/linux/reiserfs_xattr.h | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/include/linux/reiserfs_xattr.h b/include/linux/reiserfs_xattr.h index 13cdd5e1cb60..65c16fa51246 100644 --- a/include/linux/reiserfs_xattr.h +++ b/include/linux/reiserfs_xattr.h | |||
@@ -67,45 +67,27 @@ extern struct reiserfs_xattr_handler user_handler; | |||
67 | extern struct reiserfs_xattr_handler trusted_handler; | 67 | extern struct reiserfs_xattr_handler trusted_handler; |
68 | extern struct reiserfs_xattr_handler security_handler; | 68 | extern struct reiserfs_xattr_handler security_handler; |
69 | 69 | ||
70 | static inline void reiserfs_write_lock_xattrs(struct super_block *sb) | ||
71 | { | ||
72 | down_write(&REISERFS_XATTR_DIR_SEM(sb)); | ||
73 | } | ||
74 | static inline void reiserfs_write_unlock_xattrs(struct super_block *sb) | ||
75 | { | ||
76 | up_write(&REISERFS_XATTR_DIR_SEM(sb)); | ||
77 | } | ||
78 | static inline void reiserfs_read_lock_xattrs(struct super_block *sb) | ||
79 | { | ||
80 | down_read(&REISERFS_XATTR_DIR_SEM(sb)); | ||
81 | } | ||
82 | |||
83 | static inline void reiserfs_read_unlock_xattrs(struct super_block *sb) | ||
84 | { | ||
85 | up_read(&REISERFS_XATTR_DIR_SEM(sb)); | ||
86 | } | ||
87 | |||
88 | static inline void reiserfs_write_lock_xattr_i(struct inode *inode) | 70 | static inline void reiserfs_write_lock_xattr_i(struct inode *inode) |
89 | { | 71 | { |
90 | down_write(&REISERFS_I(inode)->xattr_sem); | 72 | down_write(&REISERFS_I(inode)->i_xattr_sem); |
91 | } | 73 | } |
92 | static inline void reiserfs_write_unlock_xattr_i(struct inode *inode) | 74 | static inline void reiserfs_write_unlock_xattr_i(struct inode *inode) |
93 | { | 75 | { |
94 | up_write(&REISERFS_I(inode)->xattr_sem); | 76 | up_write(&REISERFS_I(inode)->i_xattr_sem); |
95 | } | 77 | } |
96 | static inline void reiserfs_read_lock_xattr_i(struct inode *inode) | 78 | static inline void reiserfs_read_lock_xattr_i(struct inode *inode) |
97 | { | 79 | { |
98 | down_read(&REISERFS_I(inode)->xattr_sem); | 80 | down_read(&REISERFS_I(inode)->i_xattr_sem); |
99 | } | 81 | } |
100 | 82 | ||
101 | static inline void reiserfs_read_unlock_xattr_i(struct inode *inode) | 83 | static inline void reiserfs_read_unlock_xattr_i(struct inode *inode) |
102 | { | 84 | { |
103 | up_read(&REISERFS_I(inode)->xattr_sem); | 85 | up_read(&REISERFS_I(inode)->i_xattr_sem); |
104 | } | 86 | } |
105 | 87 | ||
106 | static inline void reiserfs_init_xattr_rwsem(struct inode *inode) | 88 | static inline void reiserfs_init_xattr_rwsem(struct inode *inode) |
107 | { | 89 | { |
108 | init_rwsem(&REISERFS_I(inode)->xattr_sem); | 90 | init_rwsem(&REISERFS_I(inode)->i_xattr_sem); |
109 | } | 91 | } |
110 | 92 | ||
111 | #else | 93 | #else |