aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-03-20 12:30:04 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2006-03-20 12:30:04 -0500
commitc752666c17f870fa8ae9f16804dd457e9e6daaec (patch)
treec3c48383f386a24edbdf3c6292f25b587e6d9368 /include
parent419c93e0b6b9eef0bf26b8ad415f2a5bf4300119 (diff)
[GFS2] Fix bug in directory code and tidy up
Due to a typo, the dir leaf split operation was (for the first split in a directory) writing the new hash vaules at the wrong offset. This is now fixed. Also some other tidy ups are included: - We use GFS2's hash function for dentries (see ops_dentry.c) so that we don't have to keep recalculating the hash values. - A lot of common code is eliminated between the various directory lookup routines. - Better error checking on directory lookup (previously different routines checked for different errors) - The leaf split operation has a couple of redundant operations removed from it, so it should be faster. There is still further scope for further clean ups in the directory code, and readdir in particular could do with slimming down a bit. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/gfs2_ondisk.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/gfs2_ondisk.h b/include/linux/gfs2_ondisk.h
index 8d4f0445df47..a5fb4f99aa45 100644
--- a/include/linux/gfs2_ondisk.h
+++ b/include/linux/gfs2_ondisk.h
@@ -411,7 +411,7 @@ struct gfs2_quota_change {
411/* Translation functions */ 411/* Translation functions */
412 412
413extern void gfs2_inum_in(struct gfs2_inum *no, char *buf); 413extern void gfs2_inum_in(struct gfs2_inum *no, char *buf);
414extern void gfs2_inum_out(struct gfs2_inum *no, char *buf); 414extern void gfs2_inum_out(const struct gfs2_inum *no, char *buf);
415extern void gfs2_sb_in(struct gfs2_sb *sb, char *buf); 415extern void gfs2_sb_in(struct gfs2_sb *sb, char *buf);
416extern void gfs2_rindex_in(struct gfs2_rindex *ri, char *buf); 416extern void gfs2_rindex_in(struct gfs2_rindex *ri, char *buf);
417extern void gfs2_rindex_out(struct gfs2_rindex *ri, char *buf); 417extern void gfs2_rindex_out(struct gfs2_rindex *ri, char *buf);
@@ -421,7 +421,6 @@ extern void gfs2_quota_in(struct gfs2_quota *qu, char *buf);
421extern void gfs2_quota_out(struct gfs2_quota *qu, char *buf); 421extern void gfs2_quota_out(struct gfs2_quota *qu, char *buf);
422extern void gfs2_dinode_in(struct gfs2_dinode *di, char *buf); 422extern void gfs2_dinode_in(struct gfs2_dinode *di, char *buf);
423extern void gfs2_dinode_out(struct gfs2_dinode *di, char *buf); 423extern void gfs2_dinode_out(struct gfs2_dinode *di, char *buf);
424extern void gfs2_leaf_in(struct gfs2_leaf *lf, char *buf);
425extern void gfs2_ea_header_in(struct gfs2_ea_header *ea, char *buf); 424extern void gfs2_ea_header_in(struct gfs2_ea_header *ea, char *buf);
426extern void gfs2_ea_header_out(struct gfs2_ea_header *ea, char *buf); 425extern void gfs2_ea_header_out(struct gfs2_ea_header *ea, char *buf);
427extern void gfs2_log_header_in(struct gfs2_log_header *lh, char *buf); 426extern void gfs2_log_header_in(struct gfs2_log_header *lh, char *buf);