Skip to content

RFC dirreadahead system call

Abhi Das cluster-devel linux-api linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2fs: Add dirreadahead syscall and VFS hooksarch/x86/syscalls/syscall_32.tbl arch/x86/syscalls/syscall_64.tbl fs/readdir.c +1 more+54 -02 replies
2/2gfs2: GFS2's implementation of the dir_readahead file operationfs/gfs2/Makefile fs/gfs2/dir.c fs/gfs2/dir.h +4 more+274 -150 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] dirreadahead system call

This system call takes 3 arguments:
fd - file descriptor of the directory being readahead
*offset - offset in dir from which to resume. This is updated
as we move along in the directory
count - The max number of entries to readahead

The syscall is supposed to read upto 'count' entries starting at '*offset' and cache the inodes corresponding to those entries. It returns a negative error code or a positive number indicating the number of inodes it has issued readaheads for. It also updates the '*offset' value so that repeated calls to dirreadahead can resume at the right location. Returns 0 when there are no more entries left.

Abhi Das (2):
fs: Add dirreadahead syscall and VFS hooks
gfs2: GFS2's implementation of the dir_readahead file operation

 arch/x86/syscalls/syscall_32.tbl |   1 +
 arch/x86/syscalls/syscall_64.tbl |   1 +
 fs/gfs2/Makefile                 |   3 +-
 fs/gfs2/dir.c                    |  49 ++++++---
 fs/gfs2/dir.h                    |  15 +++
 fs/gfs2/dir_readahead.c          | 209 +++++++++++++++++++++++++++++++++++++++
 fs/gfs2/file.c                   |   2 +
 fs/gfs2/main.c                   |  10 +-
 fs/gfs2/super.c                  |   1 +
 fs/readdir.c                     |  49 +++++++++
 include/linux/fs.h               |   3 +
 11 files changed, 328 insertions(+), 15 deletions(-)
 create mode 100644 fs/gfs2/dir_readahead.c
Signature · 1 line
1.8.1.4