diff options
Diffstat (limited to 'fs/ocfs2/file.c')
-rw-r--r-- | fs/ocfs2/file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index bd944e893bbe..bcae2693e957 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c | |||
@@ -812,7 +812,7 @@ int ocfs2_setattr(struct dentry *dentry, struct iattr *attr) | |||
812 | } | 812 | } |
813 | } | 813 | } |
814 | 814 | ||
815 | status = ocfs2_meta_lock(inode, NULL, &bh, 1); | 815 | status = ocfs2_meta_lock(inode, &bh, 1); |
816 | if (status < 0) { | 816 | if (status < 0) { |
817 | if (status != -ENOENT) | 817 | if (status != -ENOENT) |
818 | mlog_errno(status); | 818 | mlog_errno(status); |
@@ -1006,7 +1006,7 @@ static ssize_t ocfs2_file_aio_write(struct kiocb *iocb, | |||
1006 | */ | 1006 | */ |
1007 | meta_level = (filp->f_flags & O_APPEND) ? 1 : 0; | 1007 | meta_level = (filp->f_flags & O_APPEND) ? 1 : 0; |
1008 | for(;;) { | 1008 | for(;;) { |
1009 | ret = ocfs2_meta_lock(inode, NULL, NULL, meta_level); | 1009 | ret = ocfs2_meta_lock(inode, NULL, meta_level); |
1010 | if (ret < 0) { | 1010 | if (ret < 0) { |
1011 | meta_level = -1; | 1011 | meta_level = -1; |
1012 | mlog_errno(ret); | 1012 | mlog_errno(ret); |
@@ -1174,7 +1174,7 @@ static ssize_t ocfs2_file_aio_read(struct kiocb *iocb, | |||
1174 | * like i_size. This allows the checks down below | 1174 | * like i_size. This allows the checks down below |
1175 | * generic_file_aio_read() a chance of actually working. | 1175 | * generic_file_aio_read() a chance of actually working. |
1176 | */ | 1176 | */ |
1177 | ret = ocfs2_meta_lock(inode, NULL, NULL, 0); | 1177 | ret = ocfs2_meta_lock(inode, NULL, 0); |
1178 | if (ret < 0) { | 1178 | if (ret < 0) { |
1179 | mlog_errno(ret); | 1179 | mlog_errno(ret); |
1180 | goto bail; | 1180 | goto bail; |