You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs:
fs/9p: iattr_valid flags are kernel internal flags map them to 9p values.
fs/9p: We should not allocate a new inode when creating hardlines.
fs/9p: v9fs_stat2inode should update suid/sgid bits.
9p: Reduce object size with CONFIG_NET_9P_DEBUG
fs/9p: check schedule_timeout_interruptible return value
Fix up trivial conflicts in fs/9p/{vfs_inode.c,vfs_inode_dotl.c} due to
debug messages having changed to use p9_debug() on one hand, and the
changes for umode_t on the other.
This commit is contained in:
+7
-21
@@ -63,30 +63,16 @@ enum p9_debug_flags {
|
||||
|
||||
#ifdef CONFIG_NET_9P_DEBUG
|
||||
extern unsigned int p9_debug_level;
|
||||
|
||||
#define P9_DPRINTK(level, format, arg...) \
|
||||
do { \
|
||||
if ((p9_debug_level & level) == level) {\
|
||||
if (level == P9_DEBUG_9P) \
|
||||
printk(KERN_NOTICE "(%8.8d) " \
|
||||
format , task_pid_nr(current) , ## arg); \
|
||||
else \
|
||||
printk(KERN_NOTICE "-- %s (%d): " \
|
||||
format , __func__, task_pid_nr(current) , ## arg); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
__printf(3, 4)
|
||||
void _p9_debug(enum p9_debug_flags level, const char *func,
|
||||
const char *fmt, ...);
|
||||
#define p9_debug(level, fmt, ...) \
|
||||
_p9_debug(level, __func__, fmt, ##__VA_ARGS__)
|
||||
#else
|
||||
#define P9_DPRINTK(level, format, arg...) do { } while (0)
|
||||
#define p9_debug(level, fmt, ...) \
|
||||
no_printk(fmt, ##__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
|
||||
#define P9_EPRINTK(level, format, arg...) \
|
||||
do { \
|
||||
printk(level "9p: %s (%d): " \
|
||||
format , __func__, task_pid_nr(current), ## arg); \
|
||||
} while (0)
|
||||
|
||||
/**
|
||||
* enum p9_msg_t - 9P message types
|
||||
* @P9_TLERROR: not used
|
||||
|
||||
Reference in New Issue
Block a user