lkml.org 
[lkml]   [2006]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 8/13: eCryptfs] File operations
Date
On Thursday 04 May 2006 05:39, Phillip Hellewell wrote:
> +struct file_operations ecryptfs_dir_fops = {
> + .readdir = ecryptfs_readdir,
> + .ioctl = ecryptfs_ioctl,
> + .mmap = generic_file_mmap,
> + .open = ecryptfs_open,
> + .flush = ecryptfs_flush,
> + .release = ecryptfs_release,
> + .fsync = ecryptfs_fsync,
> + .fasync = ecryptfs_fasync,
> + .lock = ecryptfs_lock,
> + .sendfile = ecryptfs_sendfile,
> +};
> +
> +struct file_operations ecryptfs_main_fops = {
> + .llseek = ecryptfs_llseek,
> + .read = ecryptfs_read_update_atime,
> + .write = generic_file_write,
> + .readdir = ecryptfs_readdir,
> + .ioctl = ecryptfs_ioctl,
> + .mmap = generic_file_mmap,
> + .open = ecryptfs_open,
> + .flush = ecryptfs_flush,
> + .release = ecryptfs_release,
> + .fsync = ecryptfs_fsync,
> + .fasync = ecryptfs_fasync,
> + .lock = ecryptfs_lock,
> + .sendfile = ecryptfs_sendfile,
> +};

Current kernel has support for const file_operations, so new file systems
should use a 'const' attribute for 'file_operation' declarations.
It helps avoiding false sharing on SMP.

Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-05-04 06:09    [W:0.262 / U:0.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site