1. 26 Apr, 2007 4 commits
    • Mark Fasheh's avatar
      ocfs2: zero tail of sparse files on truncate · 60b11392
      Mark Fasheh authored
      Since we don't zero on extend anymore, truncate needs to be fixed up to zero
      the part of a file between i_size and and end of it's cluster. Otherwise a
      subsequent extend could expose bad data.
      This introduced a new helper, which can be used in ocfs2_write().
      Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
    • Mark Fasheh's avatar
      ocfs2: teach extend/truncate about sparse files · 3a0782d0
      Mark Fasheh authored
      For ocfs2_truncate_file(), we eliminate the "simple" truncate case which no
      longer exists since i_size is not tied to i_clusters. In
      ocfs2_extend_file(), we skip the allocation / page zeroing code for file
      systems which understand sparse files.
      The core truncate code is changed to do a bottom up tree traversal. This
      gets abstracted out into it's own function. To make things more readable,
      most of the special case handling for in-inode extents from
      ocfs2_do_truncate() is also removed.
      Though write support for sparse files comes in a later patch, we at least
      update ocfs2_prepare_inode_for_write() to skip allocation for sparse files.
      Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
    • Mark Fasheh's avatar
      ocfs2: temporarily remove extent map caching · 363041a5
      Mark Fasheh authored
      The code in extent_map.c is not prepared to deal with a subtree being
      rotated between lookups. This can happen when filling holes in sparse files.
      Instead of a lengthy patch to update the code (which would likely lose the
      benefit of caching subtree roots), we remove most of the algorithms and
      implement a simple path based lookup. A less ambitious extent caching scheme
      will be added in a later patch.
      Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
    • Mark Fasheh's avatar
      ocfs2: sparse b-tree support · dcd0538f
      Mark Fasheh authored
      Introduce tree rotations into the b-tree code. This will allow ocfs2 to
      support sparse files. Much of the added code is designed to be generic (in
      the ocfs2 sense) so that it can later be re-used to implement large
      extended attributes.
      This patch only adds the rotation code and does minimal updates to callers
      of the extent api.
      Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
  2. 13 Dec, 2006 1 commit
  3. 02 Dec, 2006 6 commits
  4. 22 Nov, 2006 1 commit
  5. 20 Sep, 2006 1 commit
    • Mark Fasheh's avatar
      ocfs2: Remove overzealous BUG_ON() · eb35746c
      Mark Fasheh authored
      The truncate code was never supposed to BUG() on an allocator it doesn't
      know about, but rather to ignore it. Right now, this does nothing, but when
      we change our allocation paths to use all suballocator files, this will
      allow current versions of the fs module to work fine.
      Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
  6. 24 Mar, 2006 1 commit
  7. 09 Jan, 2006 1 commit
  8. 03 Jan, 2006 1 commit