add jbd2 speedup patches
[ext4-patch-queue.git] / jbd2-mark-file-local-functions-as-static
blob54302ebe0a53f2224f27e628ae7303fbbd6e0071
1 jbd2: mark file-local functions as static
3 From: Rashika Kheria <rashika.kheria@gmail.com>
5 Mark functions as static in jbd2/journal.c because they are not used
6 outside this file.
8 This eliminates the following warning in jbd2/journal.c:
9 fs/jbd2/journal.c:125:5: warning: no previous prototype for ‘jbd2_verify_csum_type’ [-Wmissing-prototypes]
10 fs/jbd2/journal.c:146:5: warning: no previous prototype for ‘jbd2_superblock_csum_verify’ [-Wmissing-prototypes]
11 fs/jbd2/journal.c:154:6: warning: no previous prototype for ‘jbd2_superblock_csum_set’ [-Wmissing-prototypes]
13 Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
14 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 Reviewed-by: Josh Triplett <josh@joshtriplett.org>
16 Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
18 ---
19 fs/jbd2/journal.c |    6 +++---
20  1 file changed, 3 insertions(+), 3 deletions(-)
22 diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
23 index 5fa344a..244b6f6 100644
24 --- a/fs/jbd2/journal.c
25 +++ b/fs/jbd2/journal.c
26 @@ -122,7 +122,7 @@ EXPORT_SYMBOL(__jbd2_debug);
27  #endif
29  /* Checksumming functions */
30 -int jbd2_verify_csum_type(journal_t *j, journal_superblock_t *sb)
31 +static int jbd2_verify_csum_type(journal_t *j, journal_superblock_t *sb)
32  {
33         if (!JBD2_HAS_INCOMPAT_FEATURE(j, JBD2_FEATURE_INCOMPAT_CSUM_V2))
34                 return 1;
35 @@ -143,7 +143,7 @@ static __be32 jbd2_superblock_csum(journal_t *j, journal_superblock_t *sb)
36         return cpu_to_be32(csum);
37  }
39 -int jbd2_superblock_csum_verify(journal_t *j, journal_superblock_t *sb)
40 +static int jbd2_superblock_csum_verify(journal_t *j, journal_superblock_t *sb)
41  {
42         if (!JBD2_HAS_INCOMPAT_FEATURE(j, JBD2_FEATURE_INCOMPAT_CSUM_V2))
43                 return 1;
44 @@ -151,7 +151,7 @@ int jbd2_superblock_csum_verify(journal_t *j, journal_superblock_t *sb)
45         return sb->s_checksum == jbd2_superblock_csum(j, sb);
46  }
48 -void jbd2_superblock_csum_set(journal_t *j, journal_superblock_t *sb)
49 +static void jbd2_superblock_csum_set(journal_t *j, journal_superblock_t *sb)
50  {
51         if (!JBD2_HAS_INCOMPAT_FEATURE(j, JBD2_FEATURE_INCOMPAT_CSUM_V2))
52                 return;