Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • X xcap-capability-linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • xcap
  • xcap-capability-linux
  • Repository

Switch branch/tag
  • xcap-capability-linux
  • fs
  • btrfs
  • inode.c
Find file BlameHistoryPermalink
  • Josef Bacik's avatar
    Btrfs: fix typo in fallocate to make it honor actual size · 55a61d1d
    Josef Bacik authored Nov 22, 2010
    
    
    There is a typo in __btrfs_prealloc_file_range() where we set the i_size to
    actual_len/cur_offset, and then just set it to cur_offset again, and do the same
    with btrfs_ordered_update_i_size().  This fixes it back to keeping i_size in a
    local variable and then updating i_size properly.  Tested this with
    
    xfs_io -F -f -c "falloc 0 1" -c "pwrite 0 1" foo
    
    stat'ing foo gives us a size of 1 instead of 4096 like it was.  Thanks,
    Signed-off-by: default avatarJosef Bacik <josef@redhat.com>
    Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
    55a61d1d

Replace inode.c

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.