]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
orangefs: make orangefs_make_bad_inode static
authorMartin Brandenburg <martin@omnibond.com>
Fri, 26 Jan 2018 19:07:14 +0000 (14:07 -0500)
committerMike Marshall <hubcap@omnibond.com>
Tue, 6 Feb 2018 21:38:12 +0000 (16:38 -0500)
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/orangefs-kernel.h
fs/orangefs/orangefs-utils.c

index 25bacc334d9186732616d3a2fe8aa67f52594d1f..eebbaece85ef735b231dbe835bc414669e204749 100644 (file)
@@ -467,8 +467,6 @@ int orangefs_inode_check_changed(struct inode *inode);
 
 int orangefs_inode_setattr(struct inode *inode, struct iattr *iattr);
 
-void orangefs_make_bad_inode(struct inode *inode);
-
 int orangefs_unmount_sb(struct super_block *sb);
 
 bool orangefs_cancel_op_in_progress(struct orangefs_kernel_op_s *op);
index 97fe93129f38872eb40e7828bf6824d3b348dfae..3098c2ee7b5f1cf1b228e05908959967f770d0b3 100644 (file)
@@ -230,6 +230,25 @@ static int orangefs_inode_type(enum orangefs_ds_type objtype)
                return -1;
 }
 
+static void orangefs_make_bad_inode(struct inode *inode)
+{
+       if (is_root_handle(inode)) {
+               /*
+                * if this occurs, the pvfs2-client-core was killed but we
+                * can't afford to lose the inode operations and such
+                * associated with the root handle in any case.
+                */
+               gossip_debug(GOSSIP_UTILS_DEBUG,
+                            "*** NOT making bad root inode %pU\n",
+                            get_khandle_from_ino(inode));
+       } else {
+               gossip_debug(GOSSIP_UTILS_DEBUG,
+                            "*** making bad inode %pU\n",
+                            get_khandle_from_ino(inode));
+               make_bad_inode(inode);
+       }
+}
+
 static int orangefs_inode_is_stale(struct inode *inode, int new,
     struct ORANGEFS_sys_attr_s *attrs, char *link_target)
 {
@@ -444,25 +463,6 @@ int orangefs_inode_setattr(struct inode *inode, struct iattr *iattr)
        return ret;
 }
 
-void orangefs_make_bad_inode(struct inode *inode)
-{
-       if (is_root_handle(inode)) {
-               /*
-                * if this occurs, the pvfs2-client-core was killed but we
-                * can't afford to lose the inode operations and such
-                * associated with the root handle in any case.
-                */
-               gossip_debug(GOSSIP_UTILS_DEBUG,
-                            "*** NOT making bad root inode %pU\n",
-                            get_khandle_from_ino(inode));
-       } else {
-               gossip_debug(GOSSIP_UTILS_DEBUG,
-                            "*** making bad inode %pU\n",
-                            get_khandle_from_ino(inode));
-               make_bad_inode(inode);
-       }
-}
-
 /*
  * The following is a very dirty hack that is now a permanent part of the
  * ORANGEFS protocol. See protocol.h for more error definitions.