orangefs: rename orangefs_inode_getattr to orangefs_inode_old_getattr
This is motivated by orangefs_inode_old_getattr's habit of writing over live inodes. Signed-off-by: Martin Brandenburg <martin@omnibond.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
This commit is contained in:

committed by
Mike Marshall

parent
d57521a653
commit
3c9cf98d7b
@@ -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",
|
||||
|
Reference in New Issue
Block a user