Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175891
b: refs/heads/master
c: fce2284
h: refs/heads/master
i:
  175889: 1c1f705
  175887: 3ba6903
v: v3
  • Loading branch information
Christoph Lameter authored and Tejun Heo committed Oct 3, 2009
1 parent 665c4ec commit a161dfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4eb41d10c7ab419a1408bed2e63a9c0fdfa38844
refs/heads/master: fce22848a1e9887d92c2a975494b69149808750e
24 changes: 3 additions & 21 deletions trunk/fs/nfs/iostat.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,7 @@ struct nfs_iostats {
static inline void nfs_inc_server_stats(const struct nfs_server *server,
enum nfs_stat_eventcounters stat)
{
struct nfs_iostats *iostats;
int cpu;

cpu = get_cpu();
iostats = per_cpu_ptr(server->io_stats, cpu);
iostats->events[stat]++;
put_cpu();
this_cpu_inc(server->io_stats->events[stat]);
}

static inline void nfs_inc_stats(const struct inode *inode,
Expand All @@ -44,13 +38,7 @@ static inline void nfs_add_server_stats(const struct nfs_server *server,
enum nfs_stat_bytecounters stat,
unsigned long addend)
{
struct nfs_iostats *iostats;
int cpu;

cpu = get_cpu();
iostats = per_cpu_ptr(server->io_stats, cpu);
iostats->bytes[stat] += addend;
put_cpu();
this_cpu_add(server->io_stats->bytes[stat], addend);
}

static inline void nfs_add_stats(const struct inode *inode,
Expand All @@ -65,13 +53,7 @@ static inline void nfs_add_fscache_stats(struct inode *inode,
enum nfs_stat_fscachecounters stat,
unsigned long addend)
{
struct nfs_iostats *iostats;
int cpu;

cpu = get_cpu();
iostats = per_cpu_ptr(NFS_SERVER(inode)->io_stats, cpu);
iostats->fscache[stat] += addend;
put_cpu();
this_cpu_add(NFS_SERVER(inode)->io_stats->fscache[stat], addend);
}
#endif

Expand Down

0 comments on commit a161dfb

Please sign in to comment.