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 */
|
||||||
|
|
||||||
|
@ -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)
|
||||||
@ -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)
|
||||||
|
@ -36,7 +36,7 @@ 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