aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/reiserfs_xattr.h
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.com>2009-03-30 14:02:35 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-03-30 15:16:38 -0400
commitd984561b326cd0fe0d1183d11b9b4fa1d011d21d (patch)
treee0487588581bccaa2b875529ed84ec5a4a254ab9 /include/linux/reiserfs_xattr.h
parent6c17675e1e02ebde220ef639a3fb1333928ec2f4 (diff)
reiserfs: eliminate per-super xattr lock
With the switch to using inode->i_mutex locking during lookups/creation in the xattr root, the per-super xattr lock is no longer needed. This patch removes it. Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/reiserfs_xattr.h')
-rw-r--r--include/linux/reiserfs_xattr.h28
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;
67extern struct reiserfs_xattr_handler trusted_handler; 67extern struct reiserfs_xattr_handler trusted_handler;
68extern struct reiserfs_xattr_handler security_handler; 68extern struct reiserfs_xattr_handler security_handler;
69 69
70static inline void reiserfs_write_lock_xattrs(struct super_block *sb)
71{
72 down_write(&REISERFS_XATTR_DIR_SEM(sb));
73}
74static inline void reiserfs_write_unlock_xattrs(struct super_block *sb)
75{
76 up_write(&REISERFS_XATTR_DIR_SEM(sb));
77}
78static inline void reiserfs_read_lock_xattrs(struct super_block *sb)
79{
80 down_read(&REISERFS_XATTR_DIR_SEM(sb));
81}
82
83static inline void reiserfs_read_unlock_xattrs(struct super_block *sb)
84{
85 up_read(&REISERFS_XATTR_DIR_SEM(sb));
86}
87
88static inline void reiserfs_write_lock_xattr_i(struct inode *inode) 70static 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}
92static inline void reiserfs_write_unlock_xattr_i(struct inode *inode) 74static 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}
96static inline void reiserfs_read_lock_xattr_i(struct inode *inode) 78static 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
101static inline void reiserfs_read_unlock_xattr_i(struct inode *inode) 83static 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
106static inline void reiserfs_init_xattr_rwsem(struct inode *inode) 88static 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