Commit b519ea6d authored by Joseph Qi's avatar Joseph Qi Committed by Linus Torvalds

ocfs2: mark local functions as static

Some functions are only used locally, so mark them as static.
Signed-off-by: default avatarJoseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ab1ba021
...@@ -108,7 +108,7 @@ struct ocfs2_replay_map { ...@@ -108,7 +108,7 @@ struct ocfs2_replay_map {
unsigned char rm_replay_slots[0]; unsigned char rm_replay_slots[0];
}; };
void ocfs2_replay_map_set_state(struct ocfs2_super *osb, int state) static void ocfs2_replay_map_set_state(struct ocfs2_super *osb, int state)
{ {
if (!osb->replay_map) if (!osb->replay_map)
return; return;
...@@ -153,7 +153,7 @@ int ocfs2_compute_replay_slots(struct ocfs2_super *osb) ...@@ -153,7 +153,7 @@ int ocfs2_compute_replay_slots(struct ocfs2_super *osb)
return 0; return 0;
} }
void ocfs2_queue_replay_slots(struct ocfs2_super *osb, static void ocfs2_queue_replay_slots(struct ocfs2_super *osb,
enum ocfs2_orphan_reco_type orphan_reco_type) enum ocfs2_orphan_reco_type orphan_reco_type)
{ {
struct ocfs2_replay_map *replay_map = osb->replay_map; struct ocfs2_replay_map *replay_map = osb->replay_map;
...@@ -173,7 +173,7 @@ void ocfs2_queue_replay_slots(struct ocfs2_super *osb, ...@@ -173,7 +173,7 @@ void ocfs2_queue_replay_slots(struct ocfs2_super *osb,
replay_map->rm_state = REPLAY_DONE; replay_map->rm_state = REPLAY_DONE;
} }
void ocfs2_free_replay_slots(struct ocfs2_super *osb) static void ocfs2_free_replay_slots(struct ocfs2_super *osb)
{ {
struct ocfs2_replay_map *replay_map = osb->replay_map; struct ocfs2_replay_map *replay_map = osb->replay_map;
...@@ -1895,7 +1895,7 @@ static inline unsigned long ocfs2_orphan_scan_timeout(void) ...@@ -1895,7 +1895,7 @@ static inline unsigned long ocfs2_orphan_scan_timeout(void)
* hasn't happened. The node queues a scan and increments the * hasn't happened. The node queues a scan and increments the
* sequence number in the LVB. * sequence number in the LVB.
*/ */
void ocfs2_queue_orphan_scan(struct ocfs2_super *osb) static void ocfs2_queue_orphan_scan(struct ocfs2_super *osb)
{ {
struct ocfs2_orphan_scan *os; struct ocfs2_orphan_scan *os;
int status, i; int status, i;
...@@ -1944,7 +1944,7 @@ void ocfs2_queue_orphan_scan(struct ocfs2_super *osb) ...@@ -1944,7 +1944,7 @@ void ocfs2_queue_orphan_scan(struct ocfs2_super *osb)
} }
/* Worker task that gets fired every ORPHAN_SCAN_SCHEDULE_TIMEOUT millsec */ /* Worker task that gets fired every ORPHAN_SCAN_SCHEDULE_TIMEOUT millsec */
void ocfs2_orphan_scan_work(struct work_struct *work) static void ocfs2_orphan_scan_work(struct work_struct *work)
{ {
struct ocfs2_orphan_scan *os; struct ocfs2_orphan_scan *os;
struct ocfs2_super *osb; struct ocfs2_super *osb;
......
...@@ -7271,7 +7271,7 @@ static int ocfs2_xattr_security_set(struct dentry *dentry, const char *name, ...@@ -7271,7 +7271,7 @@ static int ocfs2_xattr_security_set(struct dentry *dentry, const char *name,
name, value, size, flags); name, value, size, flags);
} }
int ocfs2_initxattrs(struct inode *inode, const struct xattr *xattr_array, static int ocfs2_initxattrs(struct inode *inode, const struct xattr *xattr_array,
void *fs_info) void *fs_info)
{ {
const struct xattr *xattr; const struct xattr *xattr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment