aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2015-12-18 12:44:49 -0500
committerBob Peterson <rpeterso@redhat.com>2016-03-15 10:46:50 -0400
commit73b462d2808d7cbca4d7886cf6aaed850640e6cd (patch)
tree922e552a06158c985e03ab2c197808e9499d9028 /fs/gfs2
parentff34245d524a898eee6e013eb1ec165095277148 (diff)
GFS2: Eliminate parameter non_block on gfs2_inode_lookup
Now that we're not filtering out I_FREEING inodes from our lookups anymore, we can eliminate the non_block parameter from the lookup function. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Acked-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/dir.c2
-rw-r--r--fs/gfs2/inode.c5
-rw-r--r--fs/gfs2/inode.h3
-rw-r--r--fs/gfs2/ops_fstype.c2
4 files changed, 5 insertions, 7 deletions
diff --git a/fs/gfs2/dir.c b/fs/gfs2/dir.c
index d4014af4f064..4a01f30e9995 100644
--- a/fs/gfs2/dir.c
+++ b/fs/gfs2/dir.c
@@ -1660,7 +1660,7 @@ struct inode *gfs2_dir_search(struct inode *dir, const struct qstr *name,
1660 brelse(bh); 1660 brelse(bh);
1661 if (fail_on_exist) 1661 if (fail_on_exist)
1662 return ERR_PTR(-EEXIST); 1662 return ERR_PTR(-EEXIST);
1663 inode = gfs2_inode_lookup(dir->i_sb, dtype, addr, formal_ino, 0); 1663 inode = gfs2_inode_lookup(dir->i_sb, dtype, addr, formal_ino);
1664 if (!IS_ERR(inode)) 1664 if (!IS_ERR(inode))
1665 GFS2_I(inode)->i_rahead = rahead; 1665 GFS2_I(inode)->i_rahead = rahead;
1666 return inode; 1666 return inode;
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index 689ddb09e159..fa0c781c2522 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -80,13 +80,12 @@ static void gfs2_set_iop(struct inode *inode)
80 * @sb: The super block 80 * @sb: The super block
81 * @no_addr: The inode number 81 * @no_addr: The inode number
82 * @type: The type of the inode 82 * @type: The type of the inode
83 * non_block: Can we block on inodes that are being freed?
84 * 83 *
85 * Returns: A VFS inode, or an error 84 * Returns: A VFS inode, or an error
86 */ 85 */
87 86
88struct inode *gfs2_inode_lookup(struct super_block *sb, unsigned int type, 87struct inode *gfs2_inode_lookup(struct super_block *sb, unsigned int type,
89 u64 no_addr, u64 no_formal_ino, int non_block) 88 u64 no_addr, u64 no_formal_ino)
90{ 89{
91 struct inode *inode; 90 struct inode *inode;
92 struct gfs2_inode *ip; 91 struct gfs2_inode *ip;
@@ -170,7 +169,7 @@ struct inode *gfs2_lookup_by_inum(struct gfs2_sbd *sdp, u64 no_addr,
170 if (error) 169 if (error)
171 goto fail; 170 goto fail;
172 171
173 inode = gfs2_inode_lookup(sb, DT_UNKNOWN, no_addr, 0, 1); 172 inode = gfs2_inode_lookup(sb, DT_UNKNOWN, no_addr, 0);
174 if (IS_ERR(inode)) 173 if (IS_ERR(inode))
175 goto fail; 174 goto fail;
176 175
diff --git a/fs/gfs2/inode.h b/fs/gfs2/inode.h
index 22c27a8498e2..e1af0d4aa308 100644
--- a/fs/gfs2/inode.h
+++ b/fs/gfs2/inode.h
@@ -94,8 +94,7 @@ err:
94} 94}
95 95
96extern struct inode *gfs2_inode_lookup(struct super_block *sb, unsigned type, 96extern struct inode *gfs2_inode_lookup(struct super_block *sb, unsigned type,
97 u64 no_addr, u64 no_formal_ino, 97 u64 no_addr, u64 no_formal_ino);
98 int non_block);
99extern struct inode *gfs2_lookup_by_inum(struct gfs2_sbd *sdp, u64 no_addr, 98extern struct inode *gfs2_lookup_by_inum(struct gfs2_sbd *sdp, u64 no_addr,
100 u64 *no_formal_ino, 99 u64 *no_formal_ino,
101 unsigned int blktype); 100 unsigned int blktype);
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c
index dbed9e243ea2..49b0bff18fe3 100644
--- a/fs/gfs2/ops_fstype.c
+++ b/fs/gfs2/ops_fstype.c
@@ -454,7 +454,7 @@ static int gfs2_lookup_root(struct super_block *sb, struct dentry **dptr,
454 struct dentry *dentry; 454 struct dentry *dentry;
455 struct inode *inode; 455 struct inode *inode;
456 456
457 inode = gfs2_inode_lookup(sb, DT_DIR, no_addr, 0, 0); 457 inode = gfs2_inode_lookup(sb, DT_DIR, no_addr, 0);
458 if (IS_ERR(inode)) { 458 if (IS_ERR(inode)) {
459 fs_err(sdp, "can't read in %s inode: %ld\n", name, PTR_ERR(inode)); 459 fs_err(sdp, "can't read in %s inode: %ld\n", name, PTR_ERR(inode));
460 return PTR_ERR(inode); 460 return PTR_ERR(inode);