GFS2: Eliminate parameter non_block on gfs2_inode_lookup
authorBob Peterson <rpeterso@redhat.com>
Fri, 18 Dec 2015 17:44:49 +0000 (11:44 -0600)
committerBob Peterson <rpeterso@redhat.com>
Tue, 15 Mar 2016 14:46:50 +0000 (10:46 -0400)
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>
fs/gfs2/dir.c
fs/gfs2/inode.c
fs/gfs2/inode.h
fs/gfs2/ops_fstype.c

index d4014af4f064f60d05345e72cdfb6953c3abb9d9..4a01f30e99954616811a932dc1f54644f0e0f68d 100644 (file)
@@ -1660,7 +1660,7 @@ struct inode *gfs2_dir_search(struct inode *dir, const struct qstr *name,
                brelse(bh);
                if (fail_on_exist)
                        return ERR_PTR(-EEXIST);
-               inode = gfs2_inode_lookup(dir->i_sb, dtype, addr, formal_ino, 0);
+               inode = gfs2_inode_lookup(dir->i_sb, dtype, addr, formal_ino);
                if (!IS_ERR(inode))
                        GFS2_I(inode)->i_rahead = rahead;
                return inode;
index 689ddb09e159621e5e35861f67a6937002ca0540..fa0c781c2522a05e86e698368f699df86b8209f1 100644 (file)
@@ -80,13 +80,12 @@ static void gfs2_set_iop(struct inode *inode)
  * @sb: The super block
  * @no_addr: The inode number
  * @type: The type of the inode
- * non_block: Can we block on inodes that are being freed?
  *
  * Returns: A VFS inode, or an error
  */
 
 struct inode *gfs2_inode_lookup(struct super_block *sb, unsigned int type,
-                               u64 no_addr, u64 no_formal_ino, int non_block)
+                               u64 no_addr, u64 no_formal_ino)
 {
        struct inode *inode;
        struct gfs2_inode *ip;
@@ -170,7 +169,7 @@ struct inode *gfs2_lookup_by_inum(struct gfs2_sbd *sdp, u64 no_addr,
        if (error)
                goto fail;
 
-       inode = gfs2_inode_lookup(sb, DT_UNKNOWN, no_addr, 0, 1);
+       inode = gfs2_inode_lookup(sb, DT_UNKNOWN, no_addr, 0);
        if (IS_ERR(inode))
                goto fail;
 
index 22c27a8498e23fda4c2a30be5eb1f96e8c354a50..e1af0d4aa308ef83539771d0f73e5293cf557e69 100644 (file)
@@ -94,8 +94,7 @@ err:
 }
 
 extern struct inode *gfs2_inode_lookup(struct super_block *sb, unsigned type, 
-                                      u64 no_addr, u64 no_formal_ino,
-                                      int non_block);
+                                      u64 no_addr, u64 no_formal_ino);
 extern struct inode *gfs2_lookup_by_inum(struct gfs2_sbd *sdp, u64 no_addr,
                                         u64 *no_formal_ino,
                                         unsigned int blktype);
index dbed9e243ea2ff4dff89ae7212d282512656781e..49b0bff18fe3a8d6164db404c7604bf6ff7a9f18 100644 (file)
@@ -454,7 +454,7 @@ static int gfs2_lookup_root(struct super_block *sb, struct dentry **dptr,
        struct dentry *dentry;
        struct inode *inode;
 
-       inode = gfs2_inode_lookup(sb, DT_DIR, no_addr, 0, 0);
+       inode = gfs2_inode_lookup(sb, DT_DIR, no_addr, 0);
        if (IS_ERR(inode)) {
                fs_err(sdp, "can't read in %s inode: %ld\n", name, PTR_ERR(inode));
                return PTR_ERR(inode);