diff options
author | Martin Brandenburg <martin@omnibond.com> | 2016-03-15 18:28:20 +0300 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2016-03-24 00:36:14 +0300 |
commit | 3c9cf98d7b4f27e4303ea6e67db7f0c343a575b6 (patch) | |
tree | 88e392fbcce753bc8770b8b70c779ba4be4d2d09 /fs/orangefs/file.c | |
parent | d57521a653e7ac2e8edaabfff202caf87c61f08a (diff) | |
download | linux-3c9cf98d7b4f27e4303ea6e67db7f0c343a575b6.tar.xz |
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>
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", |