diff options
author | Joe Perches <joe@perches.com> | 2011-11-28 13:40:46 -0500 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2012-01-05 11:51:44 -0500 |
commit | 5d3851530d6d68564e4e0ce04d0547d4d106fc72 (patch) | |
tree | d47065fcc1f93f00070afe597a98ab185fd13859 /fs/9p/vfs_dentry.c | |
parent | a0ea787b027b79cf2e01c6758e5246db06520158 (diff) |
9p: Reduce object size with CONFIG_NET_9P_DEBUG
Reduce object size by deduplicating formats.
Use vsprintf extension %pV.
Rename P9_DPRINTK uses to p9_debug, align arguments.
Add function for _p9_debug and macro to add __func__.
Add missing "\n"s to p9_debug uses.
Remove embedded function names as p9_debug adds it.
Remove P9_EPRINTK macro and convert use to pr_<level>.
Add and use pr_fmt and pr_<level>.
$ size fs/9p/built-in.o*
text data bss dec hex filename
62133 984 16000 79117 1350d fs/9p/built-in.o.new
67342 984 16928 85254 14d06 fs/9p/built-in.o.old
$ size net/9p/built-in.o*
text data bss dec hex filename
88792 4148 22024 114964 1c114 net/9p/built-in.o.new
94072 4148 23232 121452 1da6c net/9p/built-in.o.old
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p/vfs_dentry.c')
-rw-r--r-- | fs/9p/vfs_dentry.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/9p/vfs_dentry.c b/fs/9p/vfs_dentry.c index e022890c6f40..d529437ff442 100644 --- a/fs/9p/vfs_dentry.c +++ b/fs/9p/vfs_dentry.c | |||
@@ -53,8 +53,8 @@ | |||
53 | 53 | ||
54 | static int v9fs_dentry_delete(const struct dentry *dentry) | 54 | static int v9fs_dentry_delete(const struct dentry *dentry) |
55 | { | 55 | { |
56 | P9_DPRINTK(P9_DEBUG_VFS, " dentry: %s (%p)\n", dentry->d_name.name, | 56 | p9_debug(P9_DEBUG_VFS, " dentry: %s (%p)\n", |
57 | dentry); | 57 | dentry->d_name.name, dentry); |
58 | 58 | ||
59 | return 1; | 59 | return 1; |
60 | } | 60 | } |
@@ -66,8 +66,8 @@ static int v9fs_dentry_delete(const struct dentry *dentry) | |||
66 | */ | 66 | */ |
67 | static int v9fs_cached_dentry_delete(const struct dentry *dentry) | 67 | static int v9fs_cached_dentry_delete(const struct dentry *dentry) |
68 | { | 68 | { |
69 | P9_DPRINTK(P9_DEBUG_VFS, " dentry: %s (%p)\n", | 69 | p9_debug(P9_DEBUG_VFS, " dentry: %s (%p)\n", |
70 | dentry->d_name.name, dentry); | 70 | dentry->d_name.name, dentry); |
71 | 71 | ||
72 | /* Don't cache negative dentries */ | 72 | /* Don't cache negative dentries */ |
73 | if (!dentry->d_inode) | 73 | if (!dentry->d_inode) |
@@ -86,8 +86,8 @@ static void v9fs_dentry_release(struct dentry *dentry) | |||
86 | struct v9fs_dentry *dent; | 86 | struct v9fs_dentry *dent; |
87 | struct p9_fid *temp, *current_fid; | 87 | struct p9_fid *temp, *current_fid; |
88 | 88 | ||
89 | P9_DPRINTK(P9_DEBUG_VFS, " dentry: %s (%p)\n", dentry->d_name.name, | 89 | p9_debug(P9_DEBUG_VFS, " dentry: %s (%p)\n", |
90 | dentry); | 90 | dentry->d_name.name, dentry); |
91 | dent = dentry->d_fsdata; | 91 | dent = dentry->d_fsdata; |
92 | if (dent) { | 92 | if (dent) { |
93 | list_for_each_entry_safe(current_fid, temp, &dent->fidlist, | 93 | list_for_each_entry_safe(current_fid, temp, &dent->fidlist, |