Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 909528 Details for
Bug 850426
gfs2: Add xgetdents syscall to the kernel
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
First of 3 patch set
ra_syscall_interface_1of3.patch (text/plain), 2.68 KB, created by
Abhijith Das
on 2014-06-17 11:13:29 UTC
(
hide
)
Description:
First of 3 patch set
Filename:
MIME Type:
Creator:
Abhijith Das
Created:
2014-06-17 11:13:29 UTC
Size:
2.68 KB
patch
obsolete
>commit 7335136ab72b5a17863992dc50e6902cdf24e2af >Author: Abhi Das <adas@redhat.com> >Date: Tue Jun 17 05:32:32 2014 -0500 > > vfs: Add interface to support rddir_readahead syscall > > Add interface to support rddir_readahead syscall > > Signed-off-by: Abhi Das <adas@redhat.com> > >diff --git a/arch/x86/syscalls/syscall_32.tbl b/arch/x86/syscalls/syscall_32.tbl >index d6b8679..3dacf8f 100644 >--- a/arch/x86/syscalls/syscall_32.tbl >+++ b/arch/x86/syscalls/syscall_32.tbl >@@ -360,3 +360,4 @@ > 351 i386 sched_setattr sys_sched_setattr > 352 i386 sched_getattr sys_sched_getattr > 353 i386 renameat2 sys_renameat2 >+354 i386 rddir_readahead sys_rddir_readahead >diff --git a/arch/x86/syscalls/syscall_64.tbl b/arch/x86/syscalls/syscall_64.tbl >index 04376ac..78777f1 100644 >--- a/arch/x86/syscalls/syscall_64.tbl >+++ b/arch/x86/syscalls/syscall_64.tbl >@@ -323,6 +323,7 @@ > 314 common sched_setattr sys_sched_setattr > 315 common sched_getattr sys_sched_getattr > 316 common renameat2 sys_renameat2 >+317 common rddir_readahead sys_rddir_readahead > > # > # x32-specific system call numbers start at 512 to avoid cache impact >diff --git a/fs/readdir.c b/fs/readdir.c >index 5b53d99..a727967 100644 >--- a/fs/readdir.c >+++ b/fs/readdir.c >@@ -302,3 +302,38 @@ SYSCALL_DEFINE3(getdents64, unsigned int, fd, > fdput(f); > return error; > } >+ >+SYSCALL_DEFINE4(rddir_readahead, unsigned int, fd, unsigned, flags, >+ u64 *, offset, unsigned int, count) >+{ >+ struct fd f; >+ struct inode *inode; >+ int error = -ENOTDIR; >+ >+ f = fdget(fd); >+ if (!f.file) >+ return -EBADF; >+ >+ inode = f.file->f_path.dentry->d_inode; >+ >+ if (!f.file->f_op || !f.file->f_op->rddir_ra) >+ goto out; >+ >+ error = security_file_permission(f.file, MAY_READ); >+ if (error) >+ goto out; >+ >+ error = mutex_lock_killable(&inode->i_mutex); >+ if (error) >+ goto out; >+ >+ error = -ENOENT; >+ if (!IS_DEADDIR(inode)) { >+ error = f.file->f_op->rddir_ra(f.file, flags, offset, count); >+ file_accessed(f.file); >+ } >+ mutex_unlock(&inode->i_mutex); >+out: >+ fdput(f); >+ return error; >+} >diff --git a/include/linux/fs.h b/include/linux/fs.h >index 7a9c5bc..5186b44 100644 >--- a/include/linux/fs.h >+++ b/include/linux/fs.h >@@ -1456,6 +1456,7 @@ struct file_operations { > ssize_t (*aio_read) (struct kiocb *, const struct iovec *, unsigned long, loff_t); > ssize_t (*aio_write) (struct kiocb *, const struct iovec *, unsigned long, loff_t); > int (*iterate) (struct file *, struct dir_context *); >+ int (*rddir_ra) (struct file *, unsigned flags, u64 *offset, unsigned int count); > unsigned int (*poll) (struct file *, struct poll_table_struct *); > long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long); > long (*compat_ioctl) (struct file *, unsigned int, unsigned long);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 850426
:
605960
|
617073
|
625592
|
678841
|
680222
|
680282
|
708389
|
731269
|
731270
|
731272
|
731273
|
731274
|
731278
|
731279
|
732739
|
732740
|
732845
|
834840
|
853502
|
909528
|
909529
|
909534
|
912745
|
917238
|
917239
|
920895
|
920896
|
920897
|
920898
|
920899
|
920902
|
920903
|
947987