~wb-munzinger/+junk/ocfs2-tools

« back to all changes in this revision

Viewing changes to libocfs2/cached_inode.c

  • Committer: Bazaar Package Importer
  • Author(s): Andres Rodriguez
  • Date: 2011-01-14 12:46:49 UTC
  • mfrom: (1.1.10 upstream) (0.1.10 sid)
  • Revision ID: james.westby@ubuntu.com-20110114124649-vbe5qz211f3zxwuf
Tags: 1.6.3-1ubuntu1
* Merge from debian unstable (LP: #703008).  Remaining changes:
  - Fix configure tests for ld --as-needed.
  - Fix build failure with ld --no-add-needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
 
102
102
        return ret;
103
103
}
 
104
 
 
105
errcode_t ocfs2_refresh_cached_inode(ocfs2_filesys *fs,
 
106
                                     ocfs2_cached_inode *cinode)
 
107
{
 
108
        if (cinode->ci_chains) {
 
109
                ocfs2_bitmap_free(cinode->ci_chains);
 
110
                cinode->ci_chains = NULL;
 
111
        }
 
112
 
 
113
        return ocfs2_read_inode(fs, cinode->ci_blkno,
 
114
                                (char *)cinode->ci_inode);
 
115
}