aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dir.h
diff options
context:
space:
mode:
authorMark Fasheh <mark.fasheh@oracle.com>2007-09-12 14:19:00 -0400
committerMark Fasheh <mark.fasheh@oracle.com>2007-10-12 14:54:37 -0400
commit0bfbbf62a8b5a129ba2c689283bfece80a601aba (patch)
treeaf010d9f03acf04f81aef04eb07e2962fe502543 /fs/ocfs2/dir.h
parent5eae5b96fc86e6c85f5f90e90fe9e6966f1fec63 (diff)
ocfs2: Implement ocfs2_empty_dir() as a caller of ocfs2_dir_foreach()
We can preserve the behavior of ocfs2_empty_dir(), while getting rid of the open coded directory walk by just providing a smart filldir callback. This also automatically gets to use the dir readahead code, though in this case any advantage is minor at best. 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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/dir.h b/fs/ocfs2/dir.h
index 075d0e9fd459..3e65f91b034d 100644
--- a/fs/ocfs2/dir.h
+++ b/fs/ocfs2/dir.h
@@ -54,7 +54,7 @@ static inline int ocfs2_add_entry(handle_t *handle,
54int ocfs2_check_dir_for_entry(struct inode *dir, 54int ocfs2_check_dir_for_entry(struct inode *dir,
55 const char *name, 55 const char *name,
56 int namelen); 56 int namelen);
57int ocfs2_empty_dir(struct inode *inode); /* FIXME: to namei.c */ 57int ocfs2_empty_dir(struct inode *inode);
58int ocfs2_find_files_on_disk(const char *name, 58int ocfs2_find_files_on_disk(const char *name,
59 int namelen, 59 int namelen,
60 u64 *blkno, 60 u64 *blkno,