summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Brandenburg <martin@omnibond.com>2016-03-17 16:33:08 -0400
committerMike Marshall <hubcap@omnibond.com>2016-03-23 17:36:15 -0400
commit93d53a488571fb8f8ceaba09352dcf4dfa1fc4e0 (patch)
tree8f77d6dd41907e300ca81e3fa9d3edfb4c3bb625
parent266626339b688e650f4197fb8e54532581e18cae (diff)
orangefs: remove wrapper around mutex_lock(&inode->i_mutex)
Signed-off-by: Martin Brandenburg <martin@omnibond.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
-rw-r--r--fs/orangefs/orangefs-kernel.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/orangefs/orangefs-kernel.h b/fs/orangefs/orangefs-kernel.h
index 5e85b199dee2..d85776b15176 100644
--- a/fs/orangefs/orangefs-kernel.h
+++ b/fs/orangefs/orangefs-kernel.h
@@ -645,18 +645,14 @@ do { \
645 sys_attr.mask = ORANGEFS_ATTR_SYS_ALL_SETABLE; \ 645 sys_attr.mask = ORANGEFS_ATTR_SYS_ALL_SETABLE; \
646} while (0) 646} while (0)
647 647
648#define orangefs_inode_lock(__i) mutex_lock(&(__i)->i_mutex)
649
650#define orangefs_inode_unlock(__i) mutex_unlock(&(__i)->i_mutex)
651
652static inline void orangefs_i_size_write(struct inode *inode, loff_t i_size) 648static inline void orangefs_i_size_write(struct inode *inode, loff_t i_size)
653{ 649{
654#if BITS_PER_LONG == 32 && defined(CONFIG_SMP) 650#if BITS_PER_LONG == 32 && defined(CONFIG_SMP)
655 orangefs_inode_lock(inode); 651 mutex_lock(&inode->i_mutex);
656#endif 652#endif
657 i_size_write(inode, i_size); 653 i_size_write(inode, i_size);
658#if BITS_PER_LONG == 32 && defined(CONFIG_SMP) 654#if BITS_PER_LONG == 32 && defined(CONFIG_SMP)
659 orangefs_inode_unlock(inode); 655 mutex_unlock(&inode->i_mutex);
660#endif 656#endif
661} 657}
662 658