diff options
author | Joseph Qi <joseph.qi@huawei.com> | 2015-06-24 19:55:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-24 20:49:40 -0400 |
commit | b519ea6d9a2f9c5d3cb90860f225564daa983bff (patch) | |
tree | 8722539ad25c59ebf3178b2faf05eef783c68282 | |
parent | ab1ba02181ea543a3f504d035a0f4fa53feb6e36 (diff) |
ocfs2: mark local functions as static
Some functions are only used locally, so mark them as static.
Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/ocfs2/journal.c | 10 | ||||
-rw-r--r-- | fs/ocfs2/xattr.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/fs/ocfs2/journal.c b/fs/ocfs2/journal.c index 69333bea6a1a..7c099f7032fd 100644 --- a/fs/ocfs2/journal.c +++ b/fs/ocfs2/journal.c | |||
@@ -108,7 +108,7 @@ struct ocfs2_replay_map { | |||
108 | unsigned char rm_replay_slots[0]; | 108 | unsigned char rm_replay_slots[0]; |
109 | }; | 109 | }; |
110 | 110 | ||
111 | void ocfs2_replay_map_set_state(struct ocfs2_super *osb, int state) | 111 | static void ocfs2_replay_map_set_state(struct ocfs2_super *osb, int state) |
112 | { | 112 | { |
113 | if (!osb->replay_map) | 113 | if (!osb->replay_map) |
114 | return; | 114 | return; |
@@ -153,7 +153,7 @@ int ocfs2_compute_replay_slots(struct ocfs2_super *osb) | |||
153 | return 0; | 153 | return 0; |
154 | } | 154 | } |
155 | 155 | ||
156 | void ocfs2_queue_replay_slots(struct ocfs2_super *osb, | 156 | static void ocfs2_queue_replay_slots(struct ocfs2_super *osb, |
157 | enum ocfs2_orphan_reco_type orphan_reco_type) | 157 | enum ocfs2_orphan_reco_type orphan_reco_type) |
158 | { | 158 | { |
159 | struct ocfs2_replay_map *replay_map = osb->replay_map; | 159 | struct ocfs2_replay_map *replay_map = osb->replay_map; |
@@ -173,7 +173,7 @@ void ocfs2_queue_replay_slots(struct ocfs2_super *osb, | |||
173 | replay_map->rm_state = REPLAY_DONE; | 173 | replay_map->rm_state = REPLAY_DONE; |
174 | } | 174 | } |
175 | 175 | ||
176 | void ocfs2_free_replay_slots(struct ocfs2_super *osb) | 176 | static void ocfs2_free_replay_slots(struct ocfs2_super *osb) |
177 | { | 177 | { |
178 | struct ocfs2_replay_map *replay_map = osb->replay_map; | 178 | struct ocfs2_replay_map *replay_map = osb->replay_map; |
179 | 179 | ||
@@ -1895,7 +1895,7 @@ static inline unsigned long ocfs2_orphan_scan_timeout(void) | |||
1895 | * hasn't happened. The node queues a scan and increments the | 1895 | * hasn't happened. The node queues a scan and increments the |
1896 | * sequence number in the LVB. | 1896 | * sequence number in the LVB. |
1897 | */ | 1897 | */ |
1898 | void ocfs2_queue_orphan_scan(struct ocfs2_super *osb) | 1898 | static void ocfs2_queue_orphan_scan(struct ocfs2_super *osb) |
1899 | { | 1899 | { |
1900 | struct ocfs2_orphan_scan *os; | 1900 | struct ocfs2_orphan_scan *os; |
1901 | int status, i; | 1901 | int status, i; |
@@ -1944,7 +1944,7 @@ out: | |||
1944 | } | 1944 | } |
1945 | 1945 | ||
1946 | /* Worker task that gets fired every ORPHAN_SCAN_SCHEDULE_TIMEOUT millsec */ | 1946 | /* Worker task that gets fired every ORPHAN_SCAN_SCHEDULE_TIMEOUT millsec */ |
1947 | void ocfs2_orphan_scan_work(struct work_struct *work) | 1947 | static void ocfs2_orphan_scan_work(struct work_struct *work) |
1948 | { | 1948 | { |
1949 | struct ocfs2_orphan_scan *os; | 1949 | struct ocfs2_orphan_scan *os; |
1950 | struct ocfs2_super *osb; | 1950 | struct ocfs2_super *osb; |
diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c index d03bfbf3d27d..889f3796a0d7 100644 --- a/fs/ocfs2/xattr.c +++ b/fs/ocfs2/xattr.c | |||
@@ -7271,7 +7271,7 @@ static int ocfs2_xattr_security_set(struct dentry *dentry, const char *name, | |||
7271 | name, value, size, flags); | 7271 | name, value, size, flags); |
7272 | } | 7272 | } |
7273 | 7273 | ||
7274 | int ocfs2_initxattrs(struct inode *inode, const struct xattr *xattr_array, | 7274 | static int ocfs2_initxattrs(struct inode *inode, const struct xattr *xattr_array, |
7275 | void *fs_info) | 7275 | void *fs_info) |
7276 | { | 7276 | { |
7277 | const struct xattr *xattr; | 7277 | const struct xattr *xattr; |