Skip to content

Commit

Permalink
orangefs: remove wrapper around mutex_lock(&inode->i_mutex)
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Brandenburg <[email protected]>
Signed-off-by: Mike Marshall <[email protected]>
  • Loading branch information
Martin Brandenburg authored and hubcapsc committed Mar 23, 2016
1 parent 2666263 commit 93d53a4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions fs/orangefs/orangefs-kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 93d53a4

Please sign in to comment.