diff options
author | Steve French <sfrench@us.ibm.com> | 2009-07-10 15:27:25 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2009-07-10 15:27:25 +0000 |
commit | 65bc98b0059360e458aebd208587be44641227c1 (patch) | |
tree | 37db50ecbf083d20a1b4444d49610c7eafd8f8f3 /fs/cifs/cifssmb.c | |
parent | c2cc49a2f8a479dde96a599646d30b6cc9dbed78 (diff) |
[CIFS] Distinguish posix opens and mkdirs from legacy mkdirs in stats
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 922f5fe2084..1866bc2927d 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c @@ -1113,7 +1113,10 @@ PsxCreat: psx_create_err: cifs_buf_release(pSMB); - cifs_stats_inc(&tcon->num_mkdirs); + if (posix_flags & SMB_O_DIRECTORY) + cifs_stats_inc(&tcon->num_posixmkdirs); + else + cifs_stats_inc(&tcon->num_posixopens); if (rc == -EAGAIN) goto PsxCreat; |