mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-02-05 06:43:31 +03:00
Make include/linux/ conform to ZFS style standard
No semantic changes. Fix the following types of style issues: blank after preprocessor # #define followed by space instead of tab improper first line of block comment indent by spaces instead of tabs last line in file is blank missing blank after open comment missing space before left brace non-continuation indented 4 spaces spaces instead of tabs unparenthesized return expression Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
This commit is contained in:
parent
4b393c50ae
commit
ce319db57b
@ -28,4 +28,3 @@
|
|||||||
#include <linux/bitops.h>
|
#include <linux/bitops.h>
|
||||||
|
|
||||||
#endif /* _SPL_BITOPS_COMPAT_H */
|
#endif /* _SPL_BITOPS_COMPAT_H */
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
* handlers, all running on the same CPU.
|
* handlers, all running on the same CPU.
|
||||||
*/
|
*/
|
||||||
/* Taken from 2.6.33.2 */
|
/* Taken from 2.6.33.2 */
|
||||||
# define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x))
|
#define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _SPL_COMPILER_COMPAT_H */
|
#endif /* _SPL_COMPILER_COMPAT_H */
|
||||||
|
@ -43,7 +43,7 @@ spl_filp_open(const char *name, int flags, int mode, int *err)
|
|||||||
*err = rc;
|
*err = rc;
|
||||||
filp = NULL;
|
filp = NULL;
|
||||||
}
|
}
|
||||||
return filp;
|
return (filp);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define spl_filp_close(f) filp_close(f, NULL)
|
#define spl_filp_close(f) filp_close(f, NULL)
|
||||||
@ -65,7 +65,7 @@ spl_filp_fallocate(struct file *fp, int mode, loff_t offset, loff_t len)
|
|||||||
error = fp->f_dentry->d_inode->i_op->fallocate(
|
error = fp->f_dentry->d_inode->i_op->fallocate(
|
||||||
fp->f_dentry->d_inode, mode, offset, len);
|
fp->f_dentry->d_inode, mode, offset, len);
|
||||||
#endif /* HAVE_INODE_FALLOCATE */
|
#endif /* HAVE_INODE_FALLOCATE */
|
||||||
#endif /*HAVE_FILE_FALLOCATE */
|
#endif /* HAVE_FILE_FALLOCATE */
|
||||||
|
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
@ -97,4 +97,3 @@ spl_filp_fallocate(struct file *fp, int mode, loff_t offset, loff_t len)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* SPL_FILE_COMPAT_H */
|
#endif /* SPL_FILE_COMPAT_H */
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
#ifndef list_for_each_entry_safe_reverse
|
#ifndef list_for_each_entry_safe_reverse
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* list_for_each_entry_safe_reverse
|
* list_for_each_entry_safe_reverse
|
||||||
* @pos: the type * to use as a loop cursor.
|
* @pos: the type * to use as a loop cursor.
|
||||||
* @n: another type * to use as temporary storage
|
* @n: another type * to use as temporary storage
|
||||||
@ -48,4 +48,3 @@
|
|||||||
#endif /* list_for_each_entry_safe_reverse */
|
#endif /* list_for_each_entry_safe_reverse */
|
||||||
|
|
||||||
#endif /* SPL_LIST_COMPAT_H */
|
#endif /* SPL_LIST_COMPAT_H */
|
||||||
|
|
||||||
|
@ -54,7 +54,8 @@ int rwsem_tryupgrade(struct rw_semaphore *rwsem);
|
|||||||
|
|
||||||
#if defined(RWSEM_SPINLOCK_IS_RAW)
|
#if defined(RWSEM_SPINLOCK_IS_RAW)
|
||||||
#define spl_rwsem_lock_irqsave(lk, fl) raw_spin_lock_irqsave(lk, fl)
|
#define spl_rwsem_lock_irqsave(lk, fl) raw_spin_lock_irqsave(lk, fl)
|
||||||
#define spl_rwsem_unlock_irqrestore(lk, fl) raw_spin_unlock_irqrestore(lk, fl)
|
#define spl_rwsem_unlock_irqrestore(lk, fl) \
|
||||||
|
raw_spin_unlock_irqrestore(lk, fl)
|
||||||
#define spl_rwsem_trylock_irqsave(lk, fl) raw_spin_trylock_irqsave(lk, fl)
|
#define spl_rwsem_trylock_irqsave(lk, fl) raw_spin_trylock_irqsave(lk, fl)
|
||||||
#else
|
#else
|
||||||
#define spl_rwsem_lock_irqsave(lk, fl) spin_lock_irqsave(lk, fl)
|
#define spl_rwsem_lock_irqsave(lk, fl) spin_lock_irqsave(lk, fl)
|
||||||
|
@ -29,14 +29,14 @@
|
|||||||
#include <linux/wait.h>
|
#include <linux/wait.h>
|
||||||
|
|
||||||
#ifndef HAVE_WAIT_ON_BIT_ACTION
|
#ifndef HAVE_WAIT_ON_BIT_ACTION
|
||||||
# define spl_wait_on_bit(word, bit, mode) wait_on_bit(word, bit, mode)
|
#define spl_wait_on_bit(word, bit, mode) wait_on_bit(word, bit, mode)
|
||||||
#else
|
#else
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
spl_bit_wait(void *word)
|
spl_bit_wait(void *word)
|
||||||
{
|
{
|
||||||
schedule();
|
schedule();
|
||||||
return 0;
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define spl_wait_on_bit(word, bit, mode) \
|
#define spl_wait_on_bit(word, bit, mode) \
|
||||||
|
Loading…
Reference in New Issue
Block a user