y
the buffer or return error in this case.
Signed-off-by: Abhi Das
CC: Miklos Szeredi
CC: Jens Axboe
CC: Al Viro
---
fs/splice.c | 9 -
1 file changed, 9 deletions(-)
diff --git a/fs/splice.c b/fs/splice.c
index dd9bf7e..b9899b99 100644
--- a/fs/splice.c
+++ b/fs/splice.c
@@ -106,15 +
e_read().
Signed-off-by: Abhi Das
Reviewed-by: Jan Kara
Cc: Bob Peterson
Cc: Al Viro
---
fs/splice.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/fs/splice.c b/fs/splice.c
index 801c21c..277df71 100644
--- a/fs/splice.c
+++ b/fs/splice.c
ly failed with AOP_TRUNCATED_PAGE. With this patch, my
tests pass and I haven't noticed any unwanted side effects.
This version removes the thrice-retry loop and instead indefinitely
retries lookups on AOP_TRUNCATED_PAGE errors from ->readpage.
Signed-off-by: Abhi Das
Cc: Bob Peter
ly failed with AOP_TRUNCATED_PAGE. With this patch, my
tests pass and I haven't noticed any unwanted side effects.
This version fixes a return code issue pointed out by Bob Peterson.
Signed-off-by: Abhi Das
Cc: Bob Peterson
---
fs/splice.c | 13 +++--
1 file changed, 7 insertions(+
ly failed with AOP_TRUNCATED_PAGE. With this patch, my
tests pass and I haven't noticed any unwanted side effects.
Signed-off-by: Abhi Das
---
fs/splice.c | 12 +++-
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/fs/splice.c b/fs/splice.c
index 801c21c..c424d44 1
this stage.
Subsequent getdents calls on the directory and stat calls on the
inodes will have the time-consuming lookups already done for them
and will therefore be quick.
Signed-off-by: Abhi Das
---
fs/gfs2/Makefile| 3 +-
fs/gfs2/dir.c | 49 +---
fs/gfs2/dir.h
dahead
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/sysca
This patch adds the VFS bits of the xstat patchset by David
Howells. The xgetdents syscall uses this to obtain stat
information for directory entries.
Signed-off-by: Abhi Das
---
arch/x86/syscalls/syscall_32.tbl | 2 +
arch/x86/syscalls/syscall_64.tbl | 2 +
fs/stat.c
Also add linux_xdirent structure that will be the container for
dirent, stat and xattr info.
Signed-off-by: Abhi Das
---
arch/x86/syscalls/syscall_32.tbl | 1 +
arch/x86/syscalls/syscall_64.tbl | 1 +
fs/readdir.c | 42
fs/stat.c
This patch adds a new buffer called 'vbuf' that is backed by a
vector of pages. It is dynamic and can be expanded as needed with
low overhead.
Signed-off-by: Abhi Das
---
fs/gfs2/util.c | 299 +
fs/gfs2/util.h | 43
and xattr information for each entry as requested and return
all the data back to the user in a container structure
(linux_xdirent) as part of the supplied user buffer.
Abhi Das (5):
fs: xstat system call VFS bits
fs: Add xgetdents system call and xreaddir file operation
gfs2: Add a dynamic
return to the user.
Signed-off-by: Abhi Das
---
fs/gfs2/Makefile |3 +-
fs/gfs2/dir.c| 80 ++--
fs/gfs2/dir.h| 13 +-
fs/gfs2/export.c |2 +-
fs/gfs2/file.c | 17 +-
fs/gfs2/incore.h |6 +
fs/gfs2/inode.c |3 +-
fs/gfs2/inode.h
This is essentially a copy of the sort function and its helpers
from lib/sort.c with the exception of an additional 'void *opaque'
parameter added here.
custom cmp_func and swap_func functions can make use of the opaque
field for relevant context
Signed-off-by: Abhi Das
---
fs/gfs2/u
Also adds a void *opaque field to struct dir_context that can be
used by filesystems to temporarily store any context as this
struct gets passed around in the fs.
Signed-off-by: Abhi Das
---
arch/x86/syscalls/syscall_32.tbl | 1 +
arch/x86/syscalls/syscall_64.tbl | 1 +
fs/readdir.c
14 matches
Mail list logo