diff options
author | Martin Brandenburg <martin@omnibond.com> | 2016-03-17 16:33:08 -0400 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2016-03-23 17:36:15 -0400 |
commit | 93d53a488571fb8f8ceaba09352dcf4dfa1fc4e0 (patch) | |
tree | 8f77d6dd41907e300ca81e3fa9d3edfb4c3bb625 /fs | |
parent | 266626339b688e650f4197fb8e54532581e18cae (diff) | |
download | op-kernel-dev-93d53a488571fb8f8ceaba09352dcf4dfa1fc4e0.zip op-kernel-dev-93d53a488571fb8f8ceaba09352dcf4dfa1fc4e0.tar.gz |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/orangefs/orangefs-kernel.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/orangefs/orangefs-kernel.h b/fs/orangefs/orangefs-kernel.h index 5e85b19..d85776b 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 } |