Whamcloud - gitweb
b=20563 move definition of ll_need_32bit_api() after the one of ll_sb_info
authorJohann Lombardi <johann.lombardi@oracle.com>
Thu, 26 Aug 2010 15:33:44 +0000 (17:33 +0200)
committerJohann Lombardi <johann.lombardi@oracle.com>
Thu, 26 Aug 2010 15:33:44 +0000 (17:33 +0200)
lustre/llite/llite_internal.h

index 0599a3e..70ab767 100644 (file)
@@ -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,