aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/inode.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-10-13 22:51:24 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-11-30 10:33:32 -0500
commit629a21e7ecedf779c68dcaa9a186069f57a7c652 (patch)
treeaff577cb9d1d3cf42ddb16f4552411d08e5cdc51 /fs/gfs2/inode.c
parent1e81c4c3e0f55c95b6278a827262b80debd0dc7e (diff)
[GFS2] split and annotate gfs2_inum
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/inode.c')
-rw-r--r--fs/gfs2/inode.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index 7eb6b440da6d..dadd1f35c864 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -112,7 +112,7 @@ void gfs2_inode_attr_out(struct gfs2_inode *ip)
112static int iget_test(struct inode *inode, void *opaque) 112static int iget_test(struct inode *inode, void *opaque)
113{ 113{
114 struct gfs2_inode *ip = GFS2_I(inode); 114 struct gfs2_inode *ip = GFS2_I(inode);
115 struct gfs2_inum *inum = opaque; 115 struct gfs2_inum_host *inum = opaque;
116 116
117 if (ip && ip->i_num.no_addr == inum->no_addr) 117 if (ip && ip->i_num.no_addr == inum->no_addr)
118 return 1; 118 return 1;
@@ -123,19 +123,19 @@ static int iget_test(struct inode *inode, void *opaque)
123static int iget_set(struct inode *inode, void *opaque) 123static int iget_set(struct inode *inode, void *opaque)
124{ 124{
125 struct gfs2_inode *ip = GFS2_I(inode); 125 struct gfs2_inode *ip = GFS2_I(inode);
126 struct gfs2_inum *inum = opaque; 126 struct gfs2_inum_host *inum = opaque;
127 127
128 ip->i_num = *inum; 128 ip->i_num = *inum;
129 return 0; 129 return 0;
130} 130}
131 131
132struct inode *gfs2_ilookup(struct super_block *sb, struct gfs2_inum *inum) 132struct inode *gfs2_ilookup(struct super_block *sb, struct gfs2_inum_host *inum)
133{ 133{
134 return ilookup5(sb, (unsigned long)inum->no_formal_ino, 134 return ilookup5(sb, (unsigned long)inum->no_formal_ino,
135 iget_test, inum); 135 iget_test, inum);
136} 136}
137 137
138static struct inode *gfs2_iget(struct super_block *sb, struct gfs2_inum *inum) 138static struct inode *gfs2_iget(struct super_block *sb, struct gfs2_inum_host *inum)
139{ 139{
140 return iget5_locked(sb, (unsigned long)inum->no_formal_ino, 140 return iget5_locked(sb, (unsigned long)inum->no_formal_ino,
141 iget_test, iget_set, inum); 141 iget_test, iget_set, inum);
@@ -150,7 +150,7 @@ static struct inode *gfs2_iget(struct super_block *sb, struct gfs2_inum *inum)
150 * Returns: A VFS inode, or an error 150 * Returns: A VFS inode, or an error
151 */ 151 */
152 152
153struct inode *gfs2_inode_lookup(struct super_block *sb, struct gfs2_inum *inum, unsigned int type) 153struct inode *gfs2_inode_lookup(struct super_block *sb, struct gfs2_inum_host *inum, unsigned int type)
154{ 154{
155 struct inode *inode = gfs2_iget(sb, inum); 155 struct inode *inode = gfs2_iget(sb, inum);
156 struct gfs2_inode *ip = GFS2_I(inode); 156 struct gfs2_inode *ip = GFS2_I(inode);
@@ -394,7 +394,7 @@ struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name,
394 struct super_block *sb = dir->i_sb; 394 struct super_block *sb = dir->i_sb;
395 struct gfs2_inode *dip = GFS2_I(dir); 395 struct gfs2_inode *dip = GFS2_I(dir);
396 struct gfs2_holder d_gh; 396 struct gfs2_holder d_gh;
397 struct gfs2_inum inum; 397 struct gfs2_inum_host inum;
398 unsigned int type; 398 unsigned int type;
399 int error = 0; 399 int error = 0;
400 struct inode *inode = NULL; 400 struct inode *inode = NULL;
@@ -610,7 +610,7 @@ static void munge_mode_uid_gid(struct gfs2_inode *dip, unsigned int *mode,
610 *gid = current->fsgid; 610 *gid = current->fsgid;
611} 611}
612 612
613static int alloc_dinode(struct gfs2_inode *dip, struct gfs2_inum *inum, 613static int alloc_dinode(struct gfs2_inode *dip, struct gfs2_inum_host *inum,
614 u64 *generation) 614 u64 *generation)
615{ 615{
616 struct gfs2_sbd *sdp = GFS2_SB(&dip->i_inode); 616 struct gfs2_sbd *sdp = GFS2_SB(&dip->i_inode);
@@ -650,7 +650,7 @@ out:
650 */ 650 */
651 651
652static void init_dinode(struct gfs2_inode *dip, struct gfs2_glock *gl, 652static void init_dinode(struct gfs2_inode *dip, struct gfs2_glock *gl,
653 const struct gfs2_inum *inum, unsigned int mode, 653 const struct gfs2_inum_host *inum, unsigned int mode,
654 unsigned int uid, unsigned int gid, 654 unsigned int uid, unsigned int gid,
655 const u64 *generation) 655 const u64 *generation)
656{ 656{
@@ -707,7 +707,7 @@ static void init_dinode(struct gfs2_inode *dip, struct gfs2_glock *gl,
707} 707}
708 708
709static int make_dinode(struct gfs2_inode *dip, struct gfs2_glock *gl, 709static int make_dinode(struct gfs2_inode *dip, struct gfs2_glock *gl,
710 unsigned int mode, const struct gfs2_inum *inum, 710 unsigned int mode, const struct gfs2_inum_host *inum,
711 const u64 *generation) 711 const u64 *generation)
712{ 712{
713 struct gfs2_sbd *sdp = GFS2_SB(&dip->i_inode); 713 struct gfs2_sbd *sdp = GFS2_SB(&dip->i_inode);
@@ -866,7 +866,7 @@ struct inode *gfs2_createi(struct gfs2_holder *ghs, const struct qstr *name,
866 struct gfs2_inode *dip = ghs->gh_gl->gl_object; 866 struct gfs2_inode *dip = ghs->gh_gl->gl_object;
867 struct inode *dir = &dip->i_inode; 867 struct inode *dir = &dip->i_inode;
868 struct gfs2_sbd *sdp = GFS2_SB(&dip->i_inode); 868 struct gfs2_sbd *sdp = GFS2_SB(&dip->i_inode);
869 struct gfs2_inum inum; 869 struct gfs2_inum_host inum;
870 int error; 870 int error;
871 u64 generation; 871 u64 generation;
872 872
@@ -1018,7 +1018,7 @@ int gfs2_rmdiri(struct gfs2_inode *dip, const struct qstr *name,
1018int gfs2_unlink_ok(struct gfs2_inode *dip, const struct qstr *name, 1018int gfs2_unlink_ok(struct gfs2_inode *dip, const struct qstr *name,
1019 struct gfs2_inode *ip) 1019 struct gfs2_inode *ip)
1020{ 1020{
1021 struct gfs2_inum inum; 1021 struct gfs2_inum_host inum;
1022 unsigned int type; 1022 unsigned int type;
1023 int error; 1023 int error;
1024 1024