From: Johann Lombardi Date: Thu, 26 Aug 2010 15:33:44 +0000 (+0200) Subject: b=20563 move definition of ll_need_32bit_api() after the one of ll_sb_info X-Git-Tag: v1_8_4_51~7 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=a176c7bfa8a527ac52887649c9a006d48b4a4237;p=fs%2Flustre-release.git b=20563 move definition of ll_need_32bit_api() after the one of ll_sb_info --- diff --git a/lustre/llite/llite_internal.h b/lustre/llite/llite_internal.h index 0599a3e..70ab767 100644 --- a/lustre/llite/llite_internal.h +++ b/lustre/llite/llite_internal.h @@ -312,15 +312,6 @@ enum stats_track_type { /* default value for ll_direct_io_default */ #define SBI_DEFAULT_DIRECT_IO_DEFAULT 0 -static inline int ll_need_32bit_api(struct ll_sb_info *sbi) -{ -#if BITS_PER_LONG == 32 - return 1; -#else - return unlikely(cfs_curproc_is_32bit() || (sbi->ll_flags & LL_SBI_32BIT_API)); -#endif -} - /* percpu data structure for lustre lru page list */ struct ll_pglist_data { spinlock_t llpd_lock; /* lock to protect llpg_list */ @@ -645,6 +636,15 @@ void ll_ra_read_init(struct file *f, struct ll_ra_read *rar, void ll_ra_read_ex(struct file *f, struct ll_ra_read *rar); struct ll_ra_read *ll_ra_read_get(struct file *f); +static inline int ll_need_32bit_api(struct ll_sb_info *sbi) +{ +#if BITS_PER_LONG == 32 + return 1; +#else + return unlikely(cfs_curproc_is_32bit() || (sbi->ll_flags & LL_SBI_32BIT_API)); +#endif +} + /* llite/lproc_llite.c */ #ifdef LPROCFS int lprocfs_register_mountpoint(struct proc_dir_entry *parent,