diff options
Diffstat (limited to 'fs/orangefs/file.c')
-rw-r--r-- | fs/orangefs/file.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/orangefs/file.c b/fs/orangefs/file.c index 9b561b7894b3..3aff671534d0 100644 --- a/fs/orangefs/file.c +++ b/fs/orangefs/file.c @@ -455,10 +455,10 @@ static ssize_t orangefs_file_write_iter(struct kiocb *iocb, struct iov_iter *ite /* Make sure generic_write_checks sees an up to date inode size. */ if (file->f_flags & O_APPEND) { - rc = orangefs_inode_getattr(file->f_mapping->host, + rc = orangefs_inode_old_getattr(file->f_mapping->host, ORANGEFS_ATTR_SYS_SIZE, 0); if (rc) { - gossip_err("%s: orangefs_inode_getattr failed, rc:%zd:.\n", + gossip_err("%s: orangefs_inode_old_getattr failed, rc:%zd:.\n", __func__, rc); goto out; } @@ -670,7 +670,8 @@ static loff_t orangefs_file_llseek(struct file *file, loff_t offset, int origin) * NOTE: We are only interested in file size here, * so we set mask accordingly. */ - ret = orangefs_inode_getattr(inode, ORANGEFS_ATTR_SYS_SIZE, 0); + ret = orangefs_inode_old_getattr(inode, + ORANGEFS_ATTR_SYS_SIZE, 0); if (ret) { gossip_debug(GOSSIP_FILE_DEBUG, "%s:%s:%d calling make bad inode\n", |