1. 16 8月, 2017 1 次提交
    • J
      btrfs: struct-funcs, constify readers · 1cbb1f45
      Jeff Mahoney 提交于
      We have reader helpers for most of the on-disk structures that use
      an extent_buffer and pointer as offset into the buffer that are
      read-only.  We should mark them as const and, in turn, allow consumers
      of these interfaces to mark the buffers const as well.
      
      No impact on code, but serves as documentation that a buffer is intended
      not to be modified.
      Signed-off-by: NJeff Mahoney <jeffm@suse.com>
      Signed-off-by: NDavid Sterba <dsterba@suse.com>
      1cbb1f45
  2. 26 5月, 2016 1 次提交
  3. 05 4月, 2016 1 次提交
  4. 24 7月, 2012 1 次提交
    • L
      Btrfs: rewrite BTRFS_SETGET_FUNCS · 18077bb4
      Li Zefan 提交于
      BTRFS_SETGET_FUNCS macro is used to generate btrfs_set_foo() and
      btrfs_foo() functions, which read and write specific fields in the
      extent buffer.
      
      The total number of set/get functions is ~200, but in fact we only
      need 8 functions: 2 for u8 field, 2 for u16, 2 for u32 and 2 for u64.
      
      It results in redunction of ~37K bytes.
      
         text    data     bss     dec     hex filename
       629661   12489     216  642366   9cd3e fs/btrfs/btrfs.o.orig
       592637   12489     216  605342   93c9e fs/btrfs/btrfs.o
      Signed-off-by: NLi Zefan <lizefan@huawei.com>
      18077bb4
  5. 27 3月, 2012 1 次提交
  6. 28 7月, 2011 1 次提交
    • C
      Btrfs: stop using highmem for extent_buffers · a6591715
      Chris Mason 提交于
      The extent_buffers have a very complex interface where
      we use HIGHMEM for metadata and try to cache a kmap mapping
      to access the memory.
      
      The next commit adds reader/writer locks, and concurrent use
      of this kmap cache would make it even more complex.
      
      This commit drops the ability to use HIGHMEM with extent buffers,
      and rips out all of the related code.
      Signed-off-by: NChris Mason <chris.mason@oracle.com>
      a6591715
  7. 06 1月, 2009 1 次提交
  8. 03 12月, 2008 1 次提交
  9. 30 9月, 2008 1 次提交
    • C
      Btrfs: add and improve comments · d352ac68
      Chris Mason 提交于
      This improves the comments at the top of many functions.  It didn't
      dive into the guts of functions because I was trying to
      avoid merging problems with the new allocator and back reference work.
      
      extent-tree.c and volumes.c were both skipped, and there is definitely
      more work todo in cleaning and commenting the code.
      Signed-off-by: NChris Mason <chris.mason@oracle.com>
      d352ac68
  10. 25 9月, 2008 3 次提交