diff options
author | Paulo Alcantara <pcacjr@zytor.com> | 2012-07-28 18:13:35 -0300 |
---|---|---|
committer | Paulo Alcantara <pcacjr@zytor.com> | 2012-07-28 18:13:35 -0300 |
commit | 65f99e18b36ce95bfa95a6c645a7c34e970050ab (patch) | |
tree | c74b94eb9b4cb8c02bce56cc22fb2487aa0218ba | |
parent | 7e2035895279842297e1a4bb6e0424071ecc2814 (diff) | |
download | syslinux-65f99e18b36ce95bfa95a6c645a7c34e970050ab.tar.gz syslinux-65f99e18b36ce95bfa95a6c645a7c34e970050ab.tar.xz syslinux-65f99e18b36ce95bfa95a6c645a7c34e970050ab.zip |
xfs: Add xfs_fmt_local_readdir() function
Do not call xfs_fmt_local_readdir() directly. As there is a
xfs_fmt_extents_readdir() function which lists directory entries in
inodes (with format "extents") in a generic way, we can have a
xfs_fmt_local_readdir() function which lists directory entries in inodes
(with format "local") in a generic way too.
Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
-rw-r--r-- | core/fs/xfs/xfs.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/core/fs/xfs/xfs.c b/core/fs/xfs/xfs.c index defd8099..f4a1fe35 100644 --- a/core/fs/xfs/xfs.c +++ b/core/fs/xfs/xfs.c @@ -37,8 +37,15 @@ #include "xfs_dir2.h" #include "xfs_readdir.h" -static int xfs_fmt_extents_readdir(struct file *file, struct dirent *dirent, - xfs_dinode_t *core) +static inline int xfs_fmt_local_readdir(struct file *file, + struct dirent *dirent, xfs_dinode_t *core) +{ + return xfs_readdir_dir2_block(file, dirent, core); +} + +static inline int xfs_fmt_extents_readdir(struct file *file, + struct dirent *dirent, + xfs_dinode_t *core) { int retval; @@ -70,7 +77,7 @@ static int xfs_readdir(struct file *file, struct dirent *dirent) } if (core->di_format == XFS_DINODE_FMT_LOCAL) - retval = xfs_readdir_dir2_local(file, dirent, core); + retval = xfs_fmt_local_readdir(file, dirent, core); else if (core->di_format == XFS_DINODE_FMT_EXTENTS) retval = xfs_fmt_extents_readdir(file, dirent, core); |