Some Lustre style cleanups
cover Some Lustre style cleanups
These are just some more cleanups in Lustre styel and comments
Emoly Liu (2):
staging/lustre: Fix blank line before EXPORT_SYMBOL() staging/lustre: Keep logical continuations on the previous line
Oleg Drokin (2):
staging/lustre: Remove unnecessary space after a cast staging/lustre: Update FID documentation link.
drivers/staging/lustre/include/linux/lnet/lib-dlc.h | 2 +- drivers/staging/lustre/include/linux/lnet/types.h | 4 ++-- drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h | 2 +- drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c | 2 +- drivers/staging/lustre/lnet/klnds/socklnd/socklnd.c | 4 ++-- drivers/staging/lustre/lnet/klnds/socklnd/socklnd_cb.c | 4 ++-- drivers/staging/lustre/lnet/klnds/socklnd/socklnd_proto.c | 6 +++--- drivers/staging/lustre/lnet/lnet/api-ni.c | 2 +- drivers/staging/lustre/lnet/lnet/module.c | 2 +- drivers/staging/lustre/lustre/include/lustre/lustre_idl.h | 4 ++-- drivers/staging/lustre/lustre/include/lustre_fid.h | 2 +- drivers/staging/lustre/lustre/include/lustre_sec.h | 6 +++--- drivers/staging/lustre/lustre/ldlm/ldlm_flock.c | 9 ++++----- drivers/staging/lustre/lustre/llite/file.c | 2 +- drivers/staging/lustre/lustre/llite/vvp_dev.c | 2 +- drivers/staging/lustre/lustre/mdc/mdc_request.c | 4 ++-- drivers/staging/lustre/lustre/mgc/mgc_request.c | 4 ++-- drivers/staging/lustre/lustre/obdclass/cl_object.c | 6 +++--- drivers/staging/lustre/lustre/obdclass/obd_config.c | 6 +++--- drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c | 1 - drivers/staging/lustre/lustre/ptlrpc/nrs.c | 2 +- drivers/staging/lustre/lustre/ptlrpc/sec.c | 4 ++-- drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c | 2 +- drivers/staging/lustre/lustre/ptlrpc/sec_config.c | 2 +- drivers/staging/lustre/lustre/ptlrpc/sec_null.c | 4 ++-- drivers/staging/lustre/lustre/ptlrpc/sec_plain.c | 10 +++++----- 26 files changed, 48 insertions(+), 50 deletions(-)
Signature · 1 line
2.7.4
PATCH 1/4 staging/lustre: Fix blank line before EXPORT_SYMBOL()
From: Emoly Liu <[email protected]>
This patch fixes one checkpatch warning in lustre:
WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
--- drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c | 1 - 1 file changed, 1 deletion(-)
drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c +0 -1
@@ -1158,7 +1158,6 @@ void ptlrpc_lprocfs_brw(struct ptlrpc_request *req, int bytes)lprocfs_counter_add (svc_stats, idx, bytes); } -EXPORT_SYMBOL (ptlrpc_lprocfs_brw);void ptlrpc_lprocfs_unregister_service (struct ptlrpc_service *svc)
Signature · 1 line
2.7.4
PATCH 2/4 staging/lustre: Keep logical continuations on the previous line
In reply to Oleg DrokinFrom: Emoly Liu <[email protected]>
This patch fixes all checkpatch occurences of "CHECK: Logical continuations should be on the previous line" in Lustre code.
--- drivers/staging/lustre/lustre/ldlm/ldlm_flock.c | 9 ++++----- drivers/staging/lustre/lustre/obdclass/obd_config.c | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-)
drivers/staging/lustre/lustre/ldlm/ldlm_flock.c +4 -5
@@ -255,14 +255,13 @@ reprocess:* overflow and underflow. */ if ((new->l_policy_data.l_flock.start > - (lock->l_policy_data.l_flock.end +1 )) - && (lock->l_policy_data.l_flock.end != -OBD_OBJECT_EOF )) + (lock->l_policy_data.l_flock.end +1 )) && + (lock->l_policy_data.l_flock.end !=OBD_OBJECT_EOF ))continue ;if ((new->l_policy_data.l_flock.end < - (lock->l_policy_data.l_flock.start -1 )) - && (lock->l_policy_data.l_flock.start !=0 )) + (lock->l_policy_data.l_flock.start -1 )) && + (lock->l_policy_data.l_flock.start !=0 ))break ; if (new->l_policy_data.l_flock.start <
drivers/staging/lustre/lustre/obdclass/obd_config.c +2 -2
@@ -1017,8 +1017,8 @@ int class_process_proc_param(char *prefix, struct lprocfs_vars *lvars,/* Search proc entries */ while (lvars[j].name) { var = &lvars[j]; -if (!class_match_param (key, var->name,NULL ) - && keylen ==strlen (var->name)) { +if (!class_match_param (key, var->name,NULL ) && + keylen ==strlen (var->name)) { matched++; rc = -EROFS ;if (var->fops && var->fops->write) {
Signature · 1 line
2.7.4
PATCH 3/4 staging/lustre: Remove unnecessary space after a cast
In reply to Oleg DrokinThis patch fixes all checkpatch occurences of
"CHECK: No space is necessary after a cast"
in Lustre code.
--- drivers/staging/lustre/include/linux/lnet/lib-dlc.h | 2 +- drivers/staging/lustre/include/linux/lnet/types.h | 4 ++-- drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h | 2 +- drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c | 2 +- drivers/staging/lustre/lnet/klnds/socklnd/socklnd.c | 4 ++-- drivers/staging/lustre/lnet/klnds/socklnd/socklnd_cb.c | 4 ++-- drivers/staging/lustre/lnet/klnds/socklnd/socklnd_proto.c | 6 +++--- drivers/staging/lustre/lnet/lnet/api-ni.c | 2 +- drivers/staging/lustre/lnet/lnet/module.c | 2 +- drivers/staging/lustre/lustre/include/lustre_sec.h | 6 +++--- drivers/staging/lustre/lustre/llite/file.c | 2 +- drivers/staging/lustre/lustre/llite/vvp_dev.c | 2 +- drivers/staging/lustre/lustre/mdc/mdc_request.c | 4 ++-- drivers/staging/lustre/lustre/mgc/mgc_request.c | 4 ++-- drivers/staging/lustre/lustre/obdclass/cl_object.c | 6 +++--- drivers/staging/lustre/lustre/obdclass/obd_config.c | 2 +- drivers/staging/lustre/lustre/ptlrpc/nrs.c | 2 +- drivers/staging/lustre/lustre/ptlrpc/sec.c | 4 ++-- drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c | 2 +- drivers/staging/lustre/lustre/ptlrpc/sec_config.c | 2 +- drivers/staging/lustre/lustre/ptlrpc/sec_null.c | 4 ++-- drivers/staging/lustre/lustre/ptlrpc/sec_plain.c | 10 +++++----- 22 files changed, 39 insertions(+), 39 deletions(-)
drivers/staging/lustre/include/linux/lnet/lib-dlc.h +1 -1
@@ -35,7 +35,7 @@#define MAX_NUM_SHOW_ENTRIES 32#define LNET_MAX_STR_LEN 128#define LNET_MAX_SHOW_NUM_CPT 128 -#define LNET_UNDEFINED_HOPS ((__u32) -1) +#define LNET_UNDEFINED_HOPS ((__u32)(-1))struct lnet_ioctl_config_lnd_cmn_tunables {__u32 lct_version;
drivers/staging/lustre/include/linux/lnet/types.h +2 -2
@@ -68,9 +68,9 @@ typedef __u64 lnet_nid_t;typedef __u32 lnet_pid_t ;/** wildcard NID that matches any end-point address */ -#define LNET_NID_ANY ((lnet_nid_t) -1) +#define LNET_NID_ANY ((lnet_nid_t)(-1))/** wildcard PID that matches any lnet_pid_t */ -#define LNET_PID_ANY ((lnet_pid_t) -1) +#define LNET_PID_ANY ((lnet_pid_t)(-1))#define LNET_PID_RESERVED 0xf0000000/* reserved bits in PID */ #define LNET_PID_USERFLAG 0x80000000/* set in userspace peers */
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h +1 -1
@@ -98,7 +98,7 @@ extern struct kib_tunables kiblnd_tunables;#define IBLND_CREDIT_HIGHWATER_V1 7/* V1 only : when eagerly to return credits */ #define IBLND_CREDITS_DEFAULT 8/* default # of peer credits */ -#define IBLND_CREDITS_MAX ((typeof(((struct kib_msg *) 0)->ibm_credits)) - 1)/* Max # of peer credits */ +#define IBLND_CREDITS_MAX ((typeof(((struct kib_msg *)0)->ibm_credits)) - 1)/* Max # of peer credits */ /* when eagerly to return credits */ #define IBLND_CREDITS_HIGHWATER (t, v) ((v) == IBLND_MSG_VERSION_1 ? \
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c +1 -1
@@ -1103,7 +1103,7 @@ kiblnd_init_rdma(struct kib_conn *conn, struct kib_tx *tx, int type, wrknob =min (min (kiblnd_rd_frag_size (srcrd, srcidx),kiblnd_rd_frag_size (dstrd, dstidx)), - (__u32 ) resid); + (__u32 )resid); sge = &tx->tx_sge[tx->tx_nwrq]; sge->addr =kiblnd_rd_frag_addr (srcrd, srcidx);
drivers/staging/lustre/lnet/klnds/socklnd/socklnd.c +2 -2
@@ -475,7 +475,7 @@ ksocknal_add_peer(lnet_ni_t *ni, lnet_process_id_t id, __u32 ipaddr, int port)write_lock_bh (&ksocknal_data.ksnd_global_lock);/* always called with a ref on ni, so shutdown can't have started */ -LASSERT (!((struct ksock_net *) ni->ni_data)->ksnn_shutdown); +LASSERT (!((struct ksock_net *)ni->ni_data)->ksnn_shutdown); peer2 =ksocknal_find_peer_locked (ni, id);if (peer2) {
@@ -1146,7 +1146,7 @@ ksocknal_create_conn(lnet_ni_t *ni, struct ksock_route *route,write_lock_bh (global_lock);/* called with a ref on ni, so shutdown can't have started */ -LASSERT (!((struct ksock_net *) ni->ni_data)->ksnn_shutdown); +LASSERT (!((struct ksock_net *)ni->ni_data)->ksnn_shutdown); peer2 =ksocknal_find_peer_locked (ni, peerid);if (!peer2) {
drivers/staging/lustre/lnet/klnds/socklnd/socklnd_cb.c +2 -2
@@ -126,7 +126,7 @@ ksocknal_send_iov(struct ksock_conn *conn, struct ksock_tx *tx) do { LASSERT(tx->tx_niov > 0); - if (nob < (int) iov->iov_len) { + if (nob < (int)iov->iov_len) { iov->iov_base = (void *)((char *)iov->iov_base + nob); iov->iov_len -= nob; return rc;
@@ -326,7 +326,7 @@ ksocknal_recv_kiov(struct ksock_conn *conn) do { LASSERT(conn->ksnc_rx_nkiov > 0); - if (nob < (int) kiov->kiov_len) { + if (nob < (int)kiov->kiov_len) { kiov->kiov_offset += nob; kiov->kiov_len -= nob; return -EAGAIN;
drivers/staging/lustre/lnet/klnds/socklnd/socklnd_proto.c +3 -3
@@ -503,7 +503,7 @@ ksocknal_send_hello_v1(struct ksock_conn *conn, ksock_hello_msg_t *hello)if (!hello->kshm_nips) goto out; -for (i =0 ; i < (int ) hello->kshm_nips; i++) +for (i =0 ; i < (int )hello->kshm_nips; i++) hello->kshm_ips[i] =__cpu_to_le32 (hello->kshm_ips[i]); rc = lnet_sock_write(sock, hello->kshm_ips,
@@ -622,7 +622,7 @@ ksocknal_recv_hello_v1(struct ksock_conn *conn, ksock_hello_msg_t *hello, goto out; } -for (i =0 ; i < (int ) hello->kshm_nips; i++) { +for (i =0 ; i < (int )hello->kshm_nips; i++) { hello->kshm_ips[i] =__le32_to_cpu (hello->kshm_ips[i]);if (!hello->kshm_ips[i]) {
@@ -690,7 +690,7 @@ ksocknal_recv_hello_v2(struct ksock_conn *conn, ksock_hello_msg_t *hello, int tireturn rc; } -for (i =0 ; i < (int ) hello->kshm_nips; i++) { +for (i =0 ; i < (int )hello->kshm_nips; i++) {if (conn->ksnc_flip)__swab32s (&hello->kshm_ips[i]);
drivers/staging/lustre/lnet/lnet/api-ni.c +1 -1
@@ -1673,7 +1673,7 @@ lnet_fill_ni_info(struct lnet_ni *ni, struct lnet_ioctl_config_data *config)if (!ni || !config)return ; - net_config = (struct lnet_ioctl_net_config *) config->cfg_bulk; + net_config = (struct lnet_ioctl_net_config *)config->cfg_bulk;if (!net_config)return ;
drivers/staging/lustre/lnet/lnet/module.c +1 -1
@@ -196,7 +196,7 @@ static int __init lnet_init(void)* Have to schedule a separate thread to avoid deadlocking * in modload */ - (void )kthread_run (lnet_configure,NULL ,"lnet_initd" ); + (void )kthread_run (lnet_configure,NULL ,"lnet_initd" ); }return 0 ;
drivers/staging/lustre/lustre/include/lustre_sec.h +3 -3
@@ -217,13 +217,13 @@ enum sptlrpc_bulk_service {#define SPTLRPC_FLVR_DEFAULT SPTLRPC_FLVR_NULL -#define SPTLRPC_FLVR_INVALID ((__u32) 0xFFFFFFFF) -#define SPTLRPC_FLVR_ANY ((__u32) 0xFFF00000) +#define SPTLRPC_FLVR_INVALID ((__u32)0xFFFFFFFF) +#define SPTLRPC_FLVR_ANY ((__u32)0xFFF00000)/** * extract the useful part from wire flavor */ -#define WIRE_FLVR (wflvr) (((__u32) (wflvr)) & 0x000FFFFF) +#define WIRE_FLVR (wflvr) (((__u32)(wflvr)) & 0x000FFFFF)/** @} flavor */
drivers/staging/lustre/lustre/llite/file.c +1 -1
@@ -1413,7 +1413,7 @@ out_unlock: out:return rc; out_req_free: -ptlrpc_req_finished ((struct ptlrpc_request *) oit.d.lustre.it_data); +ptlrpc_req_finished ((struct ptlrpc_request *)oit.d.lustre.it_data); goto out; }
drivers/staging/lustre/lustre/llite/vvp_dev.c +1 -1
@@ -560,7 +560,7 @@ static int vvp_pgcache_show(struct seq_file *f, void *v) env =cl_env_get (&refcheck);if (!IS_ERR (env)) { - pos = *(loff_t *) v; + pos = *(loff_t *)v;vvp_pgcache_id_unpack (pos, &id); sbi = f->private; clob =vvp_pgcache_obj (env, &sbi->ll_cl->cd_lu_dev, &id);
drivers/staging/lustre/lustre/mdc/mdc_request.c +2 -2
@@ -1803,7 +1803,7 @@ static int mdc_iocontrol(unsigned int cmd, struct obd_export *exp, int len,case IOC_OBD_STATFS : {struct obd_statfs stat_buf = {0 }; -if (*((__u32 *) data->ioc_inlbuf2) !=0 ) { +if (*((__u32 *)data->ioc_inlbuf2) !=0 ) { rc = -ENODEV ; goto out; }
@@ -1997,7 +1997,7 @@ static int mdc_hsm_copytool_send(int len, void *val)if (len <sizeof (*lh) +sizeof (*hal)) {CERROR ("Short HSM message %d < %d\n" , len, - (int ) (sizeof (*lh) +sizeof (*hal))); + (int )(sizeof (*lh) +sizeof (*hal)));return -EPROTO ; }if (lh->kuc_magic ==__swab16 (KUC_MAGIC )) {
drivers/staging/lustre/lustre/mgc/mgc_request.c +2 -2
@@ -1030,7 +1030,7 @@ static int mgc_set_info_async(const struct lu_env *env, struct obd_export *exp, rc =sptlrpc_parse_flavor (val, &flvr);if (rc) {CERROR ("invalid sptlrpc flavor %s to MGS\n" , - (char *) val); + (char *)val);return rc; }
@@ -1046,7 +1046,7 @@ static int mgc_set_info_async(const struct lu_env *env, struct obd_export *exp,sptlrpc_flavor2name (&cli->cl_flvr_mgc, str,sizeof (str));LCONSOLE_ERROR ("asking sptlrpc flavor %s to MGS but currently %s is in use\n" , - (char *) val, str); + (char *)val, str); rc = -EPERM ; }return rc;
drivers/staging/lustre/lustre/obdclass/cl_object.c +3 -3
@@ -573,7 +573,7 @@ static inline struct cl_env *cl_env_fetch(void) {struct cl_env *cle; - cle =cfs_hash_lookup (cl_env_hash, (void *) (long ) current->pid); + cle =cfs_hash_lookup (cl_env_hash, (void *)(long )current->pid);LASSERT (ergo (cle, cle->ce_magic == &cl_env_init0));return cle; }
@@ -584,7 +584,7 @@ static inline void cl_env_attach(struct cl_env *cle)int rc;LASSERT (!cle->ce_owner); - cle->ce_owner = (void *) (long ) current->pid; + cle->ce_owner = (void *)(long )current->pid; rc =cfs_hash_add_unique (cl_env_hash, cle->ce_owner, &cle->ce_node);LASSERT (rc ==0 );
@@ -595,7 +595,7 @@ static inline void cl_env_do_detach(struct cl_env *cle) {void *cookie; -LASSERT (cle->ce_owner == (void *) (long ) current->pid); +LASSERT (cle->ce_owner == (void *)(long )current->pid); cookie =cfs_hash_del (cl_env_hash, cle->ce_owner, &cle->ce_node);LASSERT (cookie == cle);
drivers/staging/lustre/lustre/obdclass/obd_config.c +1 -1
@@ -1073,7 +1073,7 @@ int class_config_llog_handler(const struct lu_env *env, {struct config_llog_instance *clli = data;int cfg_len = rec->lrh_len; -char *cfg_buf = (char *) (rec +1 ); +char *cfg_buf = (char *)(rec +1 );int rc =0 ;switch (rec->lrh_type) {
drivers/staging/lustre/lustre/ptlrpc/nrs.c +1 -1
@@ -769,7 +769,7 @@ static int nrs_policy_register(struct ptlrpc_nrs *nrs,spin_unlock (&nrs->nrs_lock);if (rc !=0 ) - (void )nrs_policy_unregister (nrs, policy->pol_desc->pd_name); + (void )nrs_policy_unregister (nrs, policy->pol_desc->pd_name);return rc; }
drivers/staging/lustre/lustre/ptlrpc/sec.c +2 -2
@@ -1100,7 +1100,7 @@ int sptlrpc_cli_unwrap_early_reply(struct ptlrpc_request *req, early_req->rq_flvr = req->rq_flvr; early_req->rq_repbuf = early_buf; early_req->rq_repbuf_len = early_bufsz; - early_req->rq_repdata = (struct lustre_msg *) early_buf; + early_req->rq_repdata = (struct lustre_msg *)early_buf; early_req->rq_repdata_len = early_size; early_req->rq_early =1 ; early_req->rq_reqmsg = req->rq_reqmsg;
@@ -1552,7 +1552,7 @@ void _sptlrpc_enlarge_msg_inplace(struct lustre_msg *msg,/* move from segment + 1 to end segment */ LASSERT (msg->lm_magic ==LUSTRE_MSG_MAGIC_V2 ); oldmsg_size =lustre_msg_size_v2 (msg->lm_bufcount, msg->lm_buflens); - movesize = oldmsg_size - ((unsigned long ) src - (unsigned long ) msg); + movesize = oldmsg_size - ((unsigned long )src - (unsigned long )msg);LASSERT (movesize >=0 );if (movesize)
drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c +1 -1
@@ -269,7 +269,7 @@ static unsigned long enc_pools_shrink_scan(struct shrinker *s,static inline int npages_to_npools (unsigned long npages) { -return (int ) ((npages +PAGES_PER_POOL -1 ) /PAGES_PER_POOL ); +return (int )((npages +PAGES_PER_POOL -1 ) /PAGES_PER_POOL ); }/*
drivers/staging/lustre/lustre/ptlrpc/sec_config.c +1 -1
@@ -644,7 +644,7 @@ static int logname2fsname(const char *logname, char *buf, int buflen)return -EINVAL ; } - len =min ((int ) (ptr - logname), buflen -1 ); + len =min ((int )(ptr - logname), buflen -1 );memcpy (buf, logname, len); buf[len] ='\0' ;
drivers/staging/lustre/lustre/ptlrpc/sec_null.c +2 -2
@@ -56,7 +56,7 @@ static struct ptlrpc_svc_ctx null_svc_ctx;static inline void null_encode_sec_part (struct lustre_msg *msg,enum lustre_sec_part sp) { - msg->lm_secflvr |= (((__u32 ) sp) &0xFF ) <<24 ; + msg->lm_secflvr |= (((__u32 )sp) &0xFF ) <<24 ; } static inline
@@ -326,7 +326,7 @@ int null_alloc_rs(struct ptlrpc_request *req, int msgsize) rs->rs_svc_ctx = req->rq_svc_ctx;atomic_inc (&req->rq_svc_ctx->sc_refcount); - rs->rs_repbuf = (struct lustre_msg *) (rs +1 ); + rs->rs_repbuf = (struct lustre_msg *)(rs +1 ); rs->rs_repbuf_len = rs_size -sizeof (*rs); rs->rs_msg = rs->rs_repbuf;
drivers/staging/lustre/lustre/ptlrpc/sec_plain.c +5 -5
@@ -294,7 +294,7 @@ int plain_cli_wrap_bulk(struct ptlrpc_cli_ctx *ctx,LASSERT (req->rq_reqbuf->lm_bufcount ==PLAIN_PACK_SEGMENTS ); bsd =lustre_msg_buf (req->rq_reqbuf,PLAIN_PACK_BULK_OFF ,0 ); - token = (struct plain_bulk_token *) bsd->bsd_data; + token = (struct plain_bulk_token *)bsd->bsd_data; bsd->bsd_version =0 ; bsd->bsd_flags =0 ;
@@ -339,7 +339,7 @@ int plain_cli_unwrap_bulk(struct ptlrpc_cli_ctx *ctx,LASSERT (req->rq_repdata->lm_bufcount ==PLAIN_PACK_SEGMENTS ); bsdv =lustre_msg_buf (req->rq_repdata,PLAIN_PACK_BULK_OFF ,0 ); - tokenv = (struct plain_bulk_token *) bsdv->bsd_data; + tokenv = (struct plain_bulk_token *)bsdv->bsd_data;if (req->rq_bulk_write) {if (bsdv->bsd_flags &BSD_FL_ERR )
@@ -811,7 +811,7 @@ int plain_alloc_rs(struct ptlrpc_request *req, int msgsize) rs->rs_svc_ctx = req->rq_svc_ctx;atomic_inc (&req->rq_svc_ctx->sc_refcount); - rs->rs_repbuf = (struct lustre_msg *) (rs +1 ); + rs->rs_repbuf = (struct lustre_msg *)(rs +1 ); rs->rs_repbuf_len = rs_size -sizeof (*rs);lustre_init_msg_v2 (rs->rs_repbuf,PLAIN_PACK_SEGMENTS , buflens,NULL );
@@ -891,7 +891,7 @@ int plain_svc_unwrap_bulk(struct ptlrpc_request *req,LASSERT (req->rq_pack_bulk); bsdr =lustre_msg_buf (req->rq_reqbuf,PLAIN_PACK_BULK_OFF ,0 ); - tokenr = (struct plain_bulk_token *) bsdr->bsd_data; + tokenr = (struct plain_bulk_token *)bsdr->bsd_data; bsdv =lustre_msg_buf (rs->rs_repbuf,PLAIN_PACK_BULK_OFF ,0 ); bsdv->bsd_version =0 ;
@@ -926,7 +926,7 @@ int plain_svc_wrap_bulk(struct ptlrpc_request *req, bsdr =lustre_msg_buf (req->rq_reqbuf,PLAIN_PACK_BULK_OFF ,0 ); bsdv =lustre_msg_buf (rs->rs_repbuf,PLAIN_PACK_BULK_OFF ,0 ); - tokenv = (struct plain_bulk_token *) bsdv->bsd_data; + tokenv = (struct plain_bulk_token *)bsdv->bsd_data; bsdv->bsd_version =0 ; bsdv->bsd_type =SPTLRPC_BULK_DEFAULT ;
Signature · 1 line
2.7.4
PATCH 4/4 staging/lustre: Update FID documentation link.
In reply to Oleg DrokinWhen OpenSFS took over lustre.org, there was some reshuffling. FIDs on ZFS document is now at
http://wiki.old.lustre.org/index.php/Architecture_-_Interoperability_fids_zfs
instead of the old location, so update comments accordingly.
--- drivers/staging/lustre/lustre/include/lustre/lustre_idl.h | 4 ++-- drivers/staging/lustre/lustre/include/lustre_fid.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/lustre/lustre/include/lustre/lustre_idl.h +2 -2
@@ -382,7 +382,7 @@ static inline __u64 fid_ver_oid(const struct lu_fid *fid)* used for other purposes and not risk collisions with existing inodes. * * Different FID Format -* http://arch.lustre.org/index.php?title=Interoperability_fids_zfs#NEW.0 +* http://wiki.old.lustre.org/index.php/Architecture_-_Interoperability_fids_zfs */ enum fid_seq {FID_SEQ_OST_MDT0 =0 ,
@@ -700,7 +700,7 @@ static inline int fid_set_id(struct lu_fid *fid, __u64 oid)* be passed through unchanged. Only legacy OST objects in "group 0" * will be mapped into the IDIF namespace so that they can fit into the * struct lu_fid fields without loss. For reference see: -* http://arch.lustre.org/index.php?title=Interoperability_fids_zfs +* http://wiki.old.lustre.org/index.php/Architecture_-_Interoperability_fids_zfs */ static inline int ostid_to_fid (struct lu_fid *fid,struct ost_id *ostid,__u32 ost_idx)
drivers/staging/lustre/lustre/include/lustre_fid.h +1 -1
@@ -41,7 +41,7 @@* * @{ * -* http://wiki.lustre.org/index.php/Architecture_-_Interoperability_fids_zfs +* http://wiki.old.lustre.org/index.php/Architecture_-_Interoperability_fids_zfs * describes the FID namespace and interoperability requirements for FIDs. * The important parts of that document are included here for reference. *
Signature · 1 line
2.7.4