diff options
author | Christoph Hellwig <hch@infradead.org> | 2008-03-05 21:44:50 -0500 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-04-17 21:39:14 -0400 |
commit | 43973964a386348af0a392266f008ba24170aa30 (patch) | |
tree | 17d21f1c23b4bdcd04b1057eaa8509ccad095d1d /fs/xfs/linux-2.6/xfs_vnode.h | |
parent | a8b3acd57e3aaaf73a863a28e0e9f6cca37cd8e3 (diff) |
[XFS] kill xfs_get_dir_entry
Instead of of xfs_get_dir_entry use a macro to get the xfs_inode from the
dentry in the callers and grab the reference manually.
Only grab the reference once as it's fine to keep it over the dmapi calls.
(And even that reference is actually superflous in Linux but I'll leave
that for another patch)
SGI-PV: 976035
SGI-Modid: xfs-linux-melb:xfs-kern:30531a
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_vnode.h')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_vnode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_vnode.h b/fs/xfs/linux-2.6/xfs_vnode.h index f200e0244082..202231828283 100644 --- a/fs/xfs/linux-2.6/xfs_vnode.h +++ b/fs/xfs/linux-2.6/xfs_vnode.h | |||
@@ -227,7 +227,7 @@ static inline bhv_vnode_t *vn_grab(bhv_vnode_t *vp) | |||
227 | */ | 227 | */ |
228 | #define VNAME(dentry) ((char *) (dentry)->d_name.name) | 228 | #define VNAME(dentry) ((char *) (dentry)->d_name.name) |
229 | #define VNAMELEN(dentry) ((dentry)->d_name.len) | 229 | #define VNAMELEN(dentry) ((dentry)->d_name.len) |
230 | #define VNAME_TO_VNODE(dentry) (vn_from_inode((dentry)->d_inode)) | 230 | #define VNAME_TO_INODE(dentry) (XFS_I((dentry)->d_inode)) |
231 | 231 | ||
232 | /* | 232 | /* |
233 | * Dealing with bad inodes | 233 | * Dealing with bad inodes |