/* * Copyright (c) 2014 Red Hat, Inc. * All Rights Reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation. * * This program is distributed in the hope that it would be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef __XFS_SYSFS_H__ #define __XFS_SYSFS_H__ extern struct kobj_type xfs_mp_ktype; /* xfs_mount */ extern struct kobj_type xfs_dbg_ktype; /* debug */ extern struct kobj_type xfs_log_ktype; /* xlog */ extern struct kobj_type xfs_stats_ktype; /* stats */ static inline struct xfs_kobj * to_kobj(struct kobject *kobject) { return container_of(kobject, struct xfs_kobj, kobject); } static inline void xfs_sysfs_release(struct kobject *kobject) { struct xfs_kobj *kobj = to_kobj(kobject); complete(&kobj->complete); } static inline int xfs_sysfs_init( struct xfs_kobj *kobj, struct kobj_type *ktype, struct xfs_kobj *parent_kobj, const char *name) { init_completion(&kobj->complete); return kobject_init_and_add(&kobj->kobject, ktype, &parent_kobj->kobject, "%s", name); } static inline void xfs_sysfs_del( struct xfs_kobj *kobj) { kobject_del(&kobj->kobject); kobject_put(&kobj->kobject); wait_for_completion(&kobj->complete); } int xfs_error_sysfs_init(struct xfs_mount *mp); void xfs_error_sysfs_del(struct xfs_mount *mp); #endif /* __XFS_SYSFS_H__ */ x/net-next.git/tree/net/x25/x25_link.c?id=f9a42e0d58cf0fe3d902e63d4582f2ea4cd2bb8b'>treecommitdiff
path: root/net/x25/x25_link.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-01-30 15:47:19 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-01-30 15:47:19 -0800
commitf9a42e0d58cf0fe3d902e63d4582f2ea4cd2bb8b (patch)
tree4078d3ae27d4ebb85bdcd4d84e9b9a4d059f22bb /net/x25/x25_link.c
parent751321b3dd5040dc5be19bd23f985e80c914621a (diff)
parent54791b276b4000b307339f269d3bf7db877d536f (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc
Pull sparc fixes from David Miller: "Several small bug fixes and tidies, along with a fix for non-resumable memory errors triggered by userspace" * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc: sparc64: Handle PIO & MEM non-resumable errors. sparc64: Zero pages on allocation for mondo and error queues. sparc: Fixed typo in sstate.c. Replaced panicing with panicking sparc: use symbolic names for tsb indexing
Diffstat (limited to 'net/x25/x25_link.c')