From: Martin Brandenburg Date: Thu, 17 Mar 2016 20:33:08 +0000 (-0400) Subject: orangefs: remove wrapper around mutex_lock(&inode->i_mutex) X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=93d53a488571fb8f8ceaba09352dcf4dfa1fc4e0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git orangefs: remove wrapper around mutex_lock(&inode->i_mutex) Signed-off-by: Martin Brandenburg Signed-off-by: Mike Marshall --- 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 { \ sys_attr.mask = ORANGEFS_ATTR_SYS_ALL_SETABLE; \ } while (0) -#define orangefs_inode_lock(__i) mutex_lock(&(__i)->i_mutex) - -#define orangefs_inode_unlock(__i) mutex_unlock(&(__i)->i_mutex) - static inline void orangefs_i_size_write(struct inode *inode, loff_t i_size) { #if BITS_PER_LONG == 32 && defined(CONFIG_SMP) - orangefs_inode_lock(inode); + mutex_lock(&inode->i_mutex); #endif i_size_write(inode, i_size); #if BITS_PER_LONG == 32 && defined(CONFIG_SMP) - orangefs_inode_unlock(inode); + mutex_unlock(&inode->i_mutex); #endif }