Skip to contentSkip to conversation

ceph: make ceph_queue_cap_snap static

PATCH In review Jeff Layton 2 participants 2 messages May 18, 2021 – May 19, 2021 Ceph client

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ceph: make ceph_queue_cap_snap static

---
 fs/ceph/snap.c  | 2 +-
 fs/ceph/super.h | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)
fs/ceph/snap.c +1 -1
index 4ce18055d931..44b380a53727 100644
@@ -460,7 +460,7 @@ static bool has_new_snaps(struct ceph_snap_context *o,
  * Caller must hold snap_rwsem for read (i.e., the realm topology won't
  * change).
  */
-void ceph_queue_cap_snap(struct ceph_inode_info *ci)
+static void ceph_queue_cap_snap(struct ceph_inode_info *ci)
 {
 	struct inode *inode = &ci->vfs_inode;
 	struct ceph_cap_snap *capsnap;
fs/ceph/super.h +0 -1
index db80d89556b1..12d30153e4ca 100644
@@ -931,7 +931,6 @@ extern int ceph_update_snap_trace(struct ceph_mds_client *m,
 extern void ceph_handle_snap(struct ceph_mds_client *mdsc,
 			     struct ceph_mds_session *session,
 			     struct ceph_msg *msg);
-extern void ceph_queue_cap_snap(struct ceph_inode_info *ci);
 extern int __ceph_finish_cap_snap(struct ceph_inode_info *ci,
 				  struct ceph_cap_snap *capsnap);
 extern void ceph_cleanup_empty_realms(struct ceph_mds_client *mdsc);
Signature · 1 line
2.31.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 24 lines · Jeff Layton
---
  fs/ceph/snap.c  | 2 +-
  fs/ceph/super.h | 1 -
  2 files changed, 1 insertion(+), 2 deletions(-)
fs/ceph/snap.c +1 -1
index 4ce18055d931..44b380a53727 100644
@@ -460,7 +460,7 @@ static bool has_new_snaps(struct ceph_snap_context *o,
   * Caller must hold snap_rwsem for read (i.e., the realm topology won't
   * change).
   */
-void ceph_queue_cap_snap(struct ceph_inode_info *ci)
+static void ceph_queue_cap_snap(struct ceph_inode_info *ci)
  {
  	struct inode *inode = &ci->vfs_inode;
  	struct ceph_cap_snap *capsnap;
fs/ceph/super.h +0 -0
index db80d89556b1..12d30153e4ca 100644

fs/ceph/super.h extern int ceph_update_snap_trace(struct ceph_mds_client *m, · line 936

Quoted 7 lines
fs/ceph/super.h +0 -1
@@ -931,7 +931,6 @@ extern int ceph_update_snap_trace(struct ceph_mds_client *m,
  extern void ceph_handle_snap(struct ceph_mds_client *mdsc,
  			     struct ceph_mds_session *session,
  			     struct ceph_msg *msg);
-extern void ceph_queue_cap_snap(struct ceph_inode_info *ci);
  extern int __ceph_finish_cap_snap(struct ceph_inode_info *ci,
  				  struct ceph_cap_snap *capsnap);
  extern void ceph_cleanup_empty_realms(struct ceph_mds_client *mdsc);