ceph: fix getattr on directory when using norbytes
authorYehuda Sadeh <yehuda@hq.newdream.net>
Thu, 13 Jan 2011 00:53:27 +0000 (16:53 -0800)
committerSage Weil <sage@newdream.net>
Thu, 13 Jan 2011 23:50:06 +0000 (15:50 -0800)
commit1c1266bb916e6a6b362d3be95f2cc7f3c41277a6
tree8c70982d3a5ef6e3e810f92e0a20710f42dc4ef2
parent766fc43973b16f9becb6b7402b3e052dbb84adee
ceph: fix getattr on directory when using norbytes

The norbytes mount option was broken, and when doing getattr
on a directory it return the rbytes instead of the number of
entities. This commit fixes it.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/inode.c