diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-04-12 00:43:20 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-02 19:47:23 -0400 |
commit | 5ecfcb265f1e77d5de0140d21de3f8ab25441df7 (patch) | |
tree | 4d68a7bff1e27050928dda1fe9573f087115e9f2 /fs/orangefs/file.c | |
parent | 7b9743eb8932cee1bc646725a6364ccb29d86a2c (diff) | |
download | linux-stable-5ecfcb265f1e77d5de0140d21de3f8ab25441df7.tar.gz linux-stable-5ecfcb265f1e77d5de0140d21de3f8ab25441df7.tar.bz2 linux-stable-5ecfcb265f1e77d5de0140d21de3f8ab25441df7.zip |
orangefs: don't open-code inode_lock/inode_unlock
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/orangefs/file.c')
-rw-r--r-- | fs/orangefs/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/orangefs/file.c b/fs/orangefs/file.c index ae92795ed965..491e82c6f705 100644 --- a/fs/orangefs/file.c +++ b/fs/orangefs/file.c @@ -445,7 +445,7 @@ static ssize_t orangefs_file_write_iter(struct kiocb *iocb, struct iov_iter *ite gossip_debug(GOSSIP_FILE_DEBUG, "orangefs_file_write_iter\n"); - mutex_lock(&file->f_mapping->host->i_mutex); + inode_lock(file->f_mapping->host); /* Make sure generic_write_checks sees an up to date inode size. */ if (file->f_flags & O_APPEND) { @@ -492,7 +492,7 @@ static ssize_t orangefs_file_write_iter(struct kiocb *iocb, struct iov_iter *ite out: - mutex_unlock(&file->f_mapping->host->i_mutex); + inode_unlock(file->f_mapping->host); return rc; } |