]> git.proxmox.com Git - mirror_spl-debian.git/commit
Linux Compat: inode->i_mutex/i_sem
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 10 Jan 2011 20:35:22 +0000 (12:35 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 11 Jan 2011 20:14:48 +0000 (12:14 -0800)
commit6bf4d76f4782a13f3ed378d77a0bc17967c3642a
tree40cfcdd4731fe98617b298df391f59e14a40e99c
parentb7dc3138375ed4c73f55183371b48db4e6e25d79
Linux Compat: inode->i_mutex/i_sem

Create spl_inode_lock/spl_inode_unlock compability macros to simply
access to the inode mutex/sem.  This avoids the need to have to ugly
up the code with the required #define's at every call site.  At the
moment the SPL only uses this in one place but higher layers can
benefit from the macro.
include/linux/file_compat.h
module/spl/spl-vnode.c