···281281 ret = copy_to_user(buf, &proto_ver, sizeof(__s32));282282 if (ret != 0)283283 goto error;284284- ret = copy_to_user(buf+sizeof(__s32), &magic, sizeof(__s32));284284+ ret = copy_to_user(buf + sizeof(__s32), &magic, sizeof(__s32));285285 if (ret != 0)286286 goto error;287287- ret = copy_to_user(buf+2 * sizeof(__s32), &cur_op->tag, sizeof(__u64));287287+ ret = copy_to_user(buf + 2 * sizeof(__s32),288288+ &cur_op->tag,289289+ sizeof(__u64));288290 if (ret != 0)289291 goto error;290290- ret = copy_to_user(buf+2*sizeof(__s32)+sizeof(__u64), &cur_op->upcall,291291- sizeof(struct orangefs_upcall_s));292292+ ret = copy_to_user(buf + 2 * sizeof(__s32) + sizeof(__u64),293293+ &cur_op->upcall,294294+ sizeof(struct orangefs_upcall_s));292295 if (ret != 0)293296 goto error;294297···384381 (unsigned int) MAX_DEV_REQ_DOWNSIZE);385382 return -EFAULT;386383 }387387-384384+388385 if (!copy_from_iter_full(&head, head_size, iter)) {389386 gossip_err("%s: failed to copy head.\n", __func__);390387 return -EFAULT;···429426 goto wakeup;430427431428 /*432432- * We've successfully peeled off the head and the downcall. 429429+ * We've successfully peeled off the head and the downcall.433430 * Something has gone awry if total doesn't equal the434431 * sum of head_size, downcall_size and trailer_size.435432 */···480477wakeup:481478 /*482479 * Return to vfs waitqueue, and back to service_operation483483- * through wait_for_matching_downcall. 480480+ * through wait_for_matching_downcall.484481 */485482 spin_lock(&op->lock);486483 if (unlikely(op_is_cancel(op))) {
+1-1
fs/orangefs/file.c
···162162 else163163 ret = 0;164164 break;165165- /* 165165+ /*166166 * If the op was in progress when the interrupt167167 * occurred, then the client-core was able to168168 * trigger the write.
+26-18
fs/orangefs/inode.c
···181181 new_op->upcall.req.truncate.refn = orangefs_inode->refn;182182 new_op->upcall.req.truncate.size = (__s64) iattr->ia_size;183183184184- ret = service_operation(new_op, __func__,185185- get_interruptible_flag(inode));184184+ ret = service_operation(new_op,185185+ __func__,186186+ get_interruptible_flag(inode));186187187188 /*188189 * the truncate has no downcall members to retrieve, but189190 * the status value tells us if it went through ok or not190191 */191191- gossip_debug(GOSSIP_INODE_DEBUG,192192- "orangefs: orangefs_truncate got return value of %d\n",193193- ret);192192+ gossip_debug(GOSSIP_INODE_DEBUG, "%s: ret:%d:\n", __func__, ret);194193195194 op_release(new_op);196195···211212 struct inode *inode = dentry->d_inode;212213213214 gossip_debug(GOSSIP_INODE_DEBUG,214214- "orangefs_setattr: called on %pd\n",215215- dentry);215215+ "%s: called on %pd\n",216216+ __func__,217217+ dentry);216218217219 ret = setattr_prepare(dentry, iattr);218220 if (ret)···230230231231 ret = orangefs_inode_setattr(inode, iattr);232232 gossip_debug(GOSSIP_INODE_DEBUG,233233- "orangefs_setattr: inode_setattr returned %d\n",234234- ret);233233+ "%s: orangefs_inode_setattr returned %d\n",234234+ __func__,235235+ ret);235236236237 if (!ret && (iattr->ia_valid & ATTR_MODE))237238 /* change mod on a file that has ACLs */238239 ret = posix_acl_chmod(inode, inode->i_mode);239240240241out:241241- gossip_debug(GOSSIP_INODE_DEBUG, "orangefs_setattr: returning %d\n", ret);242242+ gossip_debug(GOSSIP_INODE_DEBUG, "%s: ret:%d:\n", __func__, ret);242243 return ret;243244}244245···313312 return orangefs_inode_setattr(inode, &iattr);314313}315314316316-/* ORANGEDS2 implementation of VFS inode operations for files */315315+/* ORANGEFS2 implementation of VFS inode operations for files */317316static const struct inode_operations orangefs_file_inode_operations = {318317 .get_acl = orangefs_get_acl,319318 .set_acl = orangefs_set_acl,···351350}352351353352/*354354- * Given a ORANGEFS object identifier (fsid, handle), convert it into a ino_t type355355- * that will be used as a hash-index from where the handle will353353+ * Given an ORANGEFS object identifier (fsid, handle), convert it into354354+ * a ino_t type that will be used as a hash-index from where the handle will356355 * be searched for in the VFS hash table of inodes.357356 */358357static inline ino_t orangefs_handle_hash(struct orangefs_object_kref *ref)···382381 struct orangefs_inode_s *orangefs_inode = NULL;383382384383 orangefs_inode = ORANGEFS_I(inode);385385- return (!ORANGEFS_khandle_cmp(&(orangefs_inode->refn.khandle), &(ref->khandle))386386- && orangefs_inode->refn.fs_id == ref->fs_id);384384+ /* test handles and fs_ids... */385385+ return (!ORANGEFS_khandle_cmp(&(orangefs_inode->refn.khandle),386386+ &(ref->khandle)) &&387387+ orangefs_inode->refn.fs_id == ref->fs_id);387388}388389389390/*···393390 * file handle.394391 *395392 * @sb: the file system super block instance.396396- * @ref: The ORANGEFS object for which we are trying to locate an inode structure.393393+ * @ref: The ORANGEFS object for which we are trying to locate an inode.397394 */398398-struct inode *orangefs_iget(struct super_block *sb, struct orangefs_object_kref *ref)395395+struct inode *orangefs_iget(struct super_block *sb,396396+ struct orangefs_object_kref *ref)399397{400398 struct inode *inode = NULL;401399 unsigned long hash;402400 int error;403401404402 hash = orangefs_handle_hash(ref);405405- inode = iget5_locked(sb, hash, orangefs_test_inode, orangefs_set_inode, ref);403403+ inode = iget5_locked(sb,404404+ hash,405405+ orangefs_test_inode,406406+ orangefs_set_inode,407407+ ref);406408 if (!inode || !(inode->i_state & I_NEW))407409 return inode;408410
+2-2
fs/orangefs/orangefs-bufmap.c
···184184}185185186186/*187187- * XXX: Can the size and shift change while the caller gives up the 187187+ * XXX: Can the size and shift change while the caller gives up the188188 * XXX: lock between calling this and doing something useful?189189 */190190···496496}497497498498/*499499- * we've been handed an iovec, we need to copy it to 499499+ * we've been handed an iovec, we need to copy it to500500 * the shared memory descriptor at "buffer_index".501501 */502502int orangefs_bufmap_copy_from_iovec(struct iov_iter *iter,
+11-7
fs/orangefs/orangefs-utils.c
···183183 attrs->mask |= ORANGEFS_ATTR_SYS_CTIME;184184185185 /*186186- * ORANGEFS cannot set size with a setattr operation. Probably not likely187187- * to be requested through the VFS, but just in case, don't worry about188188- * ATTR_SIZE186186+ * ORANGEFS cannot set size with a setattr operation. Probably not187187+ * likely to be requested through the VFS, but just in case, don't188188+ * worry about ATTR_SIZE189189 */190190191191 if (iattr->ia_valid & ATTR_MODE) {···200200 tmp_mode -= S_ISVTX;201201 } else {202202 gossip_debug(GOSSIP_UTILS_DEBUG,203203- "User attempted to set sticky bit on non-root directory; returning EINVAL.\n");203203+ "%s: setting sticky bit not supported.\n",204204+ __func__);204205 return -EINVAL;205206 }206207 }207208208209 if (tmp_mode & (S_ISUID)) {209210 gossip_debug(GOSSIP_UTILS_DEBUG,210210- "Attempting to set setuid bit (not supported); returning EINVAL.\n");211211+ "%s: setting setuid bit not supported.\n",212212+ __func__);211213 return -EINVAL;212214 }213215···523521 error_code = -ETIMEDOUT;524522 } else {525523 /* assume a default error code */526526- gossip_err("orangefs: warning: got error code without errno equivalent: %d.\n", error_code);524524+ gossip_err("%s: bad error code :%d:.\n",525525+ __func__,526526+ error_code);527527 error_code = -EINVAL;528528 }529529···542538 * there is a bug somewhere.543539 */544540 } else {545545- gossip_err("orangefs: orangefs_normalize_to_errno: got error code which is not from ORANGEFS.\n");541541+ gossip_err("%s: unknown error code.\n", __func__);546542 error_code = -EINVAL;547543 }548544 return error_code;
+5-4
fs/orangefs/super.c
···156156 sb = dentry->d_sb;157157158158 gossip_debug(GOSSIP_SUPER_DEBUG,159159- "orangefs_statfs: called on sb %p (fs_id is %d)\n",160160- sb,161161- (int)(ORANGEFS_SB(sb)->fs_id));159159+ "%s: called on sb %p (fs_id is %d)\n",160160+ __func__,161161+ sb,162162+ (int)(ORANGEFS_SB(sb)->fs_id));162163163164 new_op = op_alloc(ORANGEFS_VFS_OP_STATFS);164165 if (!new_op)···199198200199out_op_release:201200 op_release(new_op);202202- gossip_debug(GOSSIP_SUPER_DEBUG, "orangefs_statfs: returning %d\n", ret);201201+ gossip_debug(GOSSIP_SUPER_DEBUG, "%s: returning %d\n", __func__, ret);203202 return ret;204203}205204