diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2009-01-20 05:29:46 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-03-27 14:43:59 -0400 |
commit | af5df56688acfb75c1b15b4e000ec5e82a9cdc29 (patch) | |
tree | 26ba8c442768453fb3fde2e9b55d05d95a6f5b02 /include/linux | |
parent | c2aca5e529a2499d454c41e01f59f1d5fe4a1364 (diff) |
vfs: Further changes from macro to inline function in fs.h
There is a second set of macros for when CONFIG_FILE_LOCKING is
not set. This patch updates those to become inline functions
as well.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/fs.h | 45 |
1 files changed, 38 insertions, 7 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index d84020b7e676..5f74d616cd7d 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1800,13 +1800,44 @@ static inline int break_lease(struct inode *inode, unsigned int mode) | |||
1800 | return 0; | 1800 | return 0; |
1801 | } | 1801 | } |
1802 | #else /* !CONFIG_FILE_LOCKING */ | 1802 | #else /* !CONFIG_FILE_LOCKING */ |
1803 | #define locks_mandatory_locked(a) ({ 0; }) | 1803 | static inline int locks_mandatory_locked(struct inode *inode) |
1804 | #define locks_mandatory_area(a, b, c, d, e) ({ 0; }) | 1804 | { |
1805 | #define __mandatory_lock(a) ({ 0; }) | 1805 | return 0; |
1806 | #define mandatory_lock(a) ({ 0; }) | 1806 | } |
1807 | #define locks_verify_locked(a) ({ 0; }) | 1807 | |
1808 | #define locks_verify_truncate(a, b, c) ({ 0; }) | 1808 | static inline int locks_mandatory_area(int rw, struct inode *inode, |
1809 | #define break_lease(a, b) ({ 0; }) | 1809 | struct file *filp, loff_t offset, |
1810 | size_t count) | ||
1811 | { | ||
1812 | return 0; | ||
1813 | } | ||
1814 | |||
1815 | static inline int __mandatory_lock(struct inode *inode) | ||
1816 | { | ||
1817 | return 0; | ||
1818 | } | ||
1819 | |||
1820 | static inline int mandatory_lock(struct inode *inode) | ||
1821 | { | ||
1822 | return 0; | ||
1823 | } | ||
1824 | |||
1825 | static inline int locks_verify_locked(struct inode *inode) | ||
1826 | { | ||
1827 | return 0; | ||
1828 | } | ||
1829 | |||
1830 | static inline int locks_verify_truncate(struct inode *inode, struct file *filp, | ||
1831 | size_t size) | ||
1832 | { | ||
1833 | return 0; | ||
1834 | } | ||
1835 | |||
1836 | static inline int break_lease(struct inode *inode, unsigned int mode) | ||
1837 | { | ||
1838 | return 0; | ||
1839 | } | ||
1840 | |||
1810 | #endif /* CONFIG_FILE_LOCKING */ | 1841 | #endif /* CONFIG_FILE_LOCKING */ |
1811 | 1842 | ||
1812 | /* fs/open.c */ | 1843 | /* fs/open.c */ |