From: Sage Weil Date: Wed, 21 Oct 2009 18:21:49 +0000 (-0700) Subject: ceph: move directory size logic to ceph_getattr X-Git-Tag: v2.6.34-rc2~9^2~157 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=232d4b01319767b3ffa5d08962a81c805962be49;p=pandora-kernel.git ceph: move directory size logic to ceph_getattr We can't fill i_size with rbytes at the fill_file_size stage without adding additional checks for directories. Notably, we want st_blocks to remain 0 on directories so that 'du' still works. Fill in i_blocks, i_size specially in ceph_getattr instead. Signed-off-by: Sage Weil --- Reading git-diff-tree failed