[PATCH] fs: Do not check for valid page->mapping in page_cache_pipe_buf_confirm

2016-05-25 Thread Abhi Das
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 +

[PATCH v3 REPOST] fs: __generic_file_splice_read retry lookup on AOP_TRUNCATED_PAGE

2015-12-18 Thread Abhi Das
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

[RFC v3 PATCH] fs: __generic_file_splice_read retry lookup on AOP_TRUNCATED_PAGE

2015-12-16 Thread Abhi Das
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

[RFC v2 PATCH] fs: __generic_file_splice_read retry lookup on AOP_TRUNCATED_PAGE

2015-12-15 Thread Abhi Das
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(+

[RFC PATCH] fs: __generic_file_splice_read retry lookup on AOP_TRUNCATED_PAGE

2015-12-14 Thread Abhi Das
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

[RFC PATCH 2/2] gfs2: GFS2's implementation of the dir_readahead file operation

2014-07-25 Thread Abhi Das
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

[RFC PATCH 0/2] dirreadahead system call

2014-07-25 Thread Abhi Das
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

[RFC PATCH 1/5] fs: xstat system call VFS bits

2014-07-25 Thread Abhi Das
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

[RFC PATCH 2/5] fs: Add xgetdents system call and xreaddir file operation

2014-07-25 Thread Abhi Das
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

[RFC PATCH 3/5] gfs2: Add a dynamic buffer backed by a vector of pages

2014-07-25 Thread Abhi Das
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

[RFC PATCH 0/5] xgetdents system call

2014-07-25 Thread Abhi Das
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

[RFC PATCH 5/5] gfs2: Add xreaddir file operation and supporting functions

2014-07-25 Thread Abhi Das
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

[RFC PATCH 4/5] gfs2: Add sort functionality with extra parameter

2014-07-25 Thread Abhi Das
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

[RFC PATCH 1/2] fs: Add dirreadahead syscall and VFS hooks

2014-07-25 Thread Abhi Das
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