]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
kclient: independently track size of address space
authorSage Weil <sage@newdream.net>
Thu, 4 Jun 2009 23:55:37 +0000 (16:55 -0700)
committerSage Weil <sage@newdream.net>
Thu, 4 Jun 2009 23:55:37 +0000 (16:55 -0700)
commit4225176e973decad76075ebfdcd0602951177696
tree33aadb2af71cb4e831d3dc19de56181f90dc15b8
parentd3569114d1d59b072f1a93d4e52f53a51649cf7a
kclient: independently track size of address space

We do vmtruncate asynchronously, but must update i_size immediately.
This is partly to avoid dropping dirty snapped pages.  But we
can't use i_size for writepages because that will reflect the
truncated size, not the size of the pre-trunc snapped state.
src/kernel/addr.c
src/kernel/inode.c
src/kernel/super.h