diff options
author | Martin Brandenburg <martin@omnibond.com> | 2016-03-14 16:59:38 -0400 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2016-03-23 17:36:13 -0400 |
commit | d57521a653e7ac2e8edaabfff202caf87c61f08a (patch) | |
tree | a7bddb5f886c9e426b7da1a75af617893f3a5b50 /fs/orangefs/orangefs-utils.c | |
parent | 2f83ace37181e445cab83d1d2a3a1dc88a36a814 (diff) | |
download | linux-d57521a653e7ac2e8edaabfff202caf87c61f08a.tar.gz linux-d57521a653e7ac2e8edaabfff202caf87c61f08a.tar.bz2 linux-d57521a653e7ac2e8edaabfff202caf87c61f08a.zip |
orangefs: remove inode->i_lock wrapper
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/orangefs-utils.c')
-rw-r--r-- | fs/orangefs/orangefs-utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/orangefs/orangefs-utils.c b/fs/orangefs/orangefs-utils.c index 8ef9e9646748..df4ad04407e2 100644 --- a/fs/orangefs/orangefs-utils.c +++ b/fs/orangefs/orangefs-utils.c @@ -170,11 +170,11 @@ static int copy_attributes_to_inode(struct inode *inode, rounded_up_size = (inode_size + (4096 - (inode_size % 4096))); - orangefs_lock_inode(inode); + spin_lock(&inode->i_lock); inode->i_bytes = inode_size; inode->i_blocks = (unsigned long)(rounded_up_size / 512); - orangefs_unlock_inode(inode); + spin_unlock(&inode->i_lock); /* * NOTE: make sure all the places we're called @@ -194,9 +194,9 @@ static int copy_attributes_to_inode(struct inode *inode, default: inode->i_size = PAGE_CACHE_SIZE; - orangefs_lock_inode(inode); + spin_lock(&inode->i_lock); inode_set_bytes(inode, inode->i_size); - orangefs_unlock_inode(inode); + spin_unlock(&inode->i_lock); break; } |