diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2007-09-10 20:50:51 -0400 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2007-10-12 14:54:37 -0400 |
commit | 5eae5b96fc86e6c85f5f90e90fe9e6966f1fec63 (patch) | |
tree | f9ab0815a6b0ee9c181a17e304abb8386bd09843 /fs/ocfs2/dir.h | |
parent | 7e8536797d4508ddc790cc3af6a281db1582d485 (diff) |
ocfs2: Remove open coded readdir()
ocfs2_queue_orphans() has an open coded readdir loop which can easily just
use a directory accessor function.
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Reviewed-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/dir.h')
-rw-r--r-- | fs/ocfs2/dir.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/ocfs2/dir.h b/fs/ocfs2/dir.h index 7bf9c0a01cdf..075d0e9fd459 100644 --- a/fs/ocfs2/dir.h +++ b/fs/ocfs2/dir.h | |||
@@ -62,6 +62,8 @@ int ocfs2_find_files_on_disk(const char *name, | |||
62 | struct buffer_head **dirent_bh, | 62 | struct buffer_head **dirent_bh, |
63 | struct ocfs2_dir_entry **dirent); | 63 | struct ocfs2_dir_entry **dirent); |
64 | int ocfs2_readdir(struct file *filp, void *dirent, filldir_t filldir); | 64 | int ocfs2_readdir(struct file *filp, void *dirent, filldir_t filldir); |
65 | int ocfs2_dir_foreach(struct inode *inode, loff_t *f_pos, void *priv, | ||
66 | filldir_t filldir); | ||
65 | int ocfs2_prepare_dir_for_insert(struct ocfs2_super *osb, | 67 | int ocfs2_prepare_dir_for_insert(struct ocfs2_super *osb, |
66 | struct inode *dir, | 68 | struct inode *dir, |
67 | struct buffer_head *parent_fe_bh, | 69 | struct buffer_head *parent_fe_bh, |
@@ -76,9 +78,4 @@ int ocfs2_fill_new_dir(struct ocfs2_super *osb, | |||
76 | struct buffer_head *fe_bh, | 78 | struct buffer_head *fe_bh, |
77 | struct ocfs2_alloc_context *data_ac); | 79 | struct ocfs2_alloc_context *data_ac); |
78 | 80 | ||
79 | int ocfs2_check_dir_entry(struct inode *dir, | ||
80 | struct ocfs2_dir_entry *de, | ||
81 | struct buffer_head *bh, | ||
82 | unsigned long offset); | ||
83 | |||
84 | #endif /* OCFS2_DIR_H */ | 81 | #endif /* OCFS2_DIR_H */ |