diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-05-25 10:38:29 -0400 |
---|---|---|
committer | Artem Bityutskiy <dedekind1@gmail.com> | 2011-07-04 03:54:26 -0400 |
commit | 1b51e98365e42c27eb2664f8353bc62ab8c55c85 (patch) | |
tree | 1c696ab1f78d2bed3b2a9a31e456a69bec3da20e /fs/ubifs | |
parent | 4315fb4072905e45da94d51e2c1e86fa41c5fc5f (diff) |
UBIFS: rename dbg_check_dir_size function
Since this function is not only about size checking, rename it to
'dbg_check_dir()'.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs')
-rw-r--r-- | fs/ubifs/debug.c | 2 | ||||
-rw-r--r-- | fs/ubifs/debug.h | 4 | ||||
-rw-r--r-- | fs/ubifs/super.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c index 4a2170dce0db..26d4c6173181 100644 --- a/fs/ubifs/debug.c +++ b/fs/ubifs/debug.c | |||
@@ -1177,7 +1177,7 @@ int dbg_check_synced_i_size(struct inode *inode) | |||
1177 | * Note, it is good idea to make sure the @dir->i_mutex is locked before | 1177 | * Note, it is good idea to make sure the @dir->i_mutex is locked before |
1178 | * calling this function. | 1178 | * calling this function. |
1179 | */ | 1179 | */ |
1180 | int dbg_check_dir_size(struct ubifs_info *c, const struct inode *dir) | 1180 | int dbg_check_dir(struct ubifs_info *c, const struct inode *dir) |
1181 | { | 1181 | { |
1182 | unsigned int nlink = 2; | 1182 | unsigned int nlink = 2; |
1183 | union ubifs_key key; | 1183 | union ubifs_key key; |
diff --git a/fs/ubifs/debug.h b/fs/ubifs/debug.h index c6ad9ea15e3c..a51c20be655d 100644 --- a/fs/ubifs/debug.h +++ b/fs/ubifs/debug.h | |||
@@ -248,7 +248,7 @@ int dbg_check_ltab(struct ubifs_info *c); | |||
248 | int dbg_chk_lpt_free_spc(struct ubifs_info *c); | 248 | int dbg_chk_lpt_free_spc(struct ubifs_info *c); |
249 | int dbg_chk_lpt_sz(struct ubifs_info *c, int action, int len); | 249 | int dbg_chk_lpt_sz(struct ubifs_info *c, int action, int len); |
250 | int dbg_check_synced_i_size(struct inode *inode); | 250 | int dbg_check_synced_i_size(struct inode *inode); |
251 | int dbg_check_dir_size(struct ubifs_info *c, const struct inode *dir); | 251 | int dbg_check_dir(struct ubifs_info *c, const struct inode *dir); |
252 | int dbg_check_tnc(struct ubifs_info *c, int extra); | 252 | int dbg_check_tnc(struct ubifs_info *c, int extra); |
253 | int dbg_check_idx_size(struct ubifs_info *c, long long idx_size); | 253 | int dbg_check_idx_size(struct ubifs_info *c, long long idx_size); |
254 | int dbg_check_filesystem(struct ubifs_info *c); | 254 | int dbg_check_filesystem(struct ubifs_info *c); |
@@ -417,7 +417,7 @@ static inline int dbg_chk_lpt_free_spc(struct ubifs_info *c) { return 0; } | |||
417 | static inline int dbg_chk_lpt_sz(struct ubifs_info *c, | 417 | static inline int dbg_chk_lpt_sz(struct ubifs_info *c, |
418 | int action, int len) { return 0; } | 418 | int action, int len) { return 0; } |
419 | static inline int dbg_check_synced_i_size(struct inode *inode) { return 0; } | 419 | static inline int dbg_check_synced_i_size(struct inode *inode) { return 0; } |
420 | static inline int dbg_check_dir_size(struct ubifs_info *c, | 420 | static inline int dbg_check_dir(struct ubifs_info *c, |
421 | const struct inode *dir) { return 0; } | 421 | const struct inode *dir) { return 0; } |
422 | static inline int dbg_check_tnc(struct ubifs_info *c, int extra) { return 0; } | 422 | static inline int dbg_check_tnc(struct ubifs_info *c, int extra) { return 0; } |
423 | static inline int dbg_check_idx_size(struct ubifs_info *c, | 423 | static inline int dbg_check_idx_size(struct ubifs_info *c, |
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 529be0582029..de82c5d04ab9 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c | |||
@@ -94,7 +94,7 @@ static int validate_inode(struct ubifs_info *c, const struct inode *inode) | |||
94 | ubifs_compr_name(ui->compr_type)); | 94 | ubifs_compr_name(ui->compr_type)); |
95 | } | 95 | } |
96 | 96 | ||
97 | err = dbg_check_dir_size(c, inode); | 97 | err = dbg_check_dir(c, inode); |
98 | return err; | 98 | return err; |
99 | } | 99 | } |
100 | 100 | ||