Remove lustre/include/linux/lustre_common.h and several unnecessary
calls to cfs_cleanup_group_info().
Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I149673dea6559b02a5de1c0a160836d67ea96119
Reviewed-on: http://review.whamcloud.com/11495
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
EXTRA_DIST = lustre_debug.h lustre_lib.h \
lustre_dlm.h lustre_handles.h lustre_net.h obd_class.h obd_support.h \
obd.h lvfs.h lustre_log.h lustre_compat25.h lustre_lite.h lustre_quota.h \
EXTRA_DIST = lustre_debug.h lustre_lib.h \
lustre_dlm.h lustre_handles.h lustre_net.h obd_class.h obd_support.h \
obd.h lvfs.h lustre_log.h lustre_compat25.h lustre_lite.h lustre_quota.h \
- lustre_user.h lustre_patchless_compat.h lustre_intent.h lustre_common.h
+ lustre_user.h lustre_patchless_compat.h lustre_intent.h
+++ /dev/null
-#ifndef LUSTRE_COMMON_H
-#define LUSTRE_COMMON_H
-
-#include <linux/sched.h>
-
-static inline int cfs_cleanup_group_info(void)
-{
- struct group_info *ginfo;
-
- ginfo = groups_alloc(0);
- if (!ginfo)
- return -ENOMEM;
-
- set_current_groups(ginfo);
- put_group_info(ginfo);
-
- return 0;
-}
-
-#define ll_inode_blksize(a) (1<<(a)->i_blkbits)
-
-#endif
#include <linux/signal.h>
#include <linux/types.h>
#include <linux/lustre_compat25.h>
#include <linux/signal.h>
#include <linux/types.h>
#include <linux/lustre_compat25.h>
-#include <linux/lustre_common.h>
#ifndef LP_POISON
#if BITS_PER_LONG > 32
#ifndef LP_POISON
#if BITS_PER_LONG > 32
#include <lustre_ha.h>
#include <linux/rbtree.h>
#include <linux/lustre_compat25.h>
#include <lustre_ha.h>
#include <linux/rbtree.h>
#include <linux/lustre_compat25.h>
-#include <linux/lustre_common.h>
#include <linux/pagemap.h>
/* lprocfs.c */
#include <linux/pagemap.h>
/* lprocfs.c */
#endif
#include <linux/lustre_compat25.h>
#endif
#include <linux/lustre_compat25.h>
-#include <linux/lustre_common.h>
#include <linux/fs.h>
#define OBD_RUN_CTXT_MAGIC 0xC0FFEEAA
#include <linux/fs.h>
#define OBD_RUN_CTXT_MAGIC 0xC0FFEEAA
#include <linux/highmem.h>
#include <linux/swap.h>
#include <linux/lustre_compat25.h>
#include <linux/highmem.h>
#include <linux/swap.h>
#include <linux/lustre_compat25.h>
-#include <linux/lustre_common.h>
#endif
#include <libcfs/libcfs.h>
#include <lustre/lustre_idl.h>
#endif
#include <libcfs/libcfs.h>
#include <lustre/lustre_idl.h>
CDEBUG(D_INODE, "objid "DOSTID" size %llu, blocks %llu,"
" blksize %lu\n", POSTID(oi), i_size_read(inode),
(unsigned long long)inode->i_blocks,
CDEBUG(D_INODE, "objid "DOSTID" size %llu, blocks %llu,"
" blksize %lu\n", POSTID(oi), i_size_read(inode),
(unsigned long long)inode->i_blocks,
- (unsigned long)ll_inode_blksize(inode));
+ 1UL << inode->i_blkbits);
}
ccc_inode_lsm_put(inode, lsm);
RETURN(rc);
}
ccc_inode_lsm_put(inode, lsm);
RETURN(rc);
/* The mgc fs exclusion mutex. Only one fs can be setup at a time. */
mutex_lock(&cli->cl_mgc_mutex);
/* The mgc fs exclusion mutex. Only one fs can be setup at a time. */
mutex_lock(&cli->cl_mgc_mutex);
- cfs_cleanup_group_info();
-
/* Setup the configs dir */
rc = lu_env_init(env, LCT_MG_THREAD);
if (rc)
/* Setup the configs dir */
rc = lu_env_init(env, LCT_MG_THREAD);
if (rc)
- /* FIXME what's this? Do I need it? */
- rc = cfs_cleanup_group_info();
- if (rc)
- RETURN(rc);
-
OBD_SET_CTXT_MAGIC(&mgs->mgs_obd->obd_lvfs_ctxt);
mgs->mgs_obd->obd_lvfs_ctxt.dt = mgs->mgs_bottom;
OBD_SET_CTXT_MAGIC(&mgs->mgs_obd->obd_lvfs_ctxt);
mgs->mgs_obd->obd_lvfs_ctxt.dt = mgs->mgs_bottom;
newvalid |= OBD_MD_FLBLOCKS;
}
if (valid & OBD_MD_FLBLKSZ) { /* optimal block size */
newvalid |= OBD_MD_FLBLOCKS;
}
if (valid & OBD_MD_FLBLKSZ) { /* optimal block size */
- dst->o_blksize = ll_inode_blksize(src);
+ dst->o_blksize = 1U << src->i_blkbits;
newvalid |= OBD_MD_FLBLKSZ;
}
if (valid & OBD_MD_FLTYPE) {
newvalid |= OBD_MD_FLBLKSZ;
}
if (valid & OBD_MD_FLTYPE) {
- rc = cfs_cleanup_group_info();
- if (rc)
- RETURN(rc);
-
#ifdef LPROCFS
obd->obd_vars = lprocfs_ost_obd_vars;
lprocfs_seq_obd_setup(obd);
#ifdef LPROCFS
obd->obd_vars = lprocfs_ost_obd_vars;
lprocfs_seq_obd_setup(obd);