Skip to content
Snippets Groups Projects
Select Git revision
  • a1b879eefc2b34cd3f17187ef6fc1cf3960e9518
  • vme-testing default
  • ci-test
  • master
  • remoteproc
  • am625-sk-ov5640
  • pcal6534-upstreaming
  • lps22df-upstreaming
  • msc-upstreaming
  • imx8mp
  • iio/noa1305
  • vme-next
  • vme-next-4.14-rc4
  • v4.14-rc4
  • v4.14-rc3
  • v4.14-rc2
  • v4.14-rc1
  • v4.13
  • vme-next-4.13-rc7
  • v4.13-rc7
  • v4.13-rc6
  • v4.13-rc5
  • v4.13-rc4
  • v4.13-rc3
  • v4.13-rc2
  • v4.13-rc1
  • v4.12
  • v4.12-rc7
  • v4.12-rc6
  • v4.12-rc5
  • v4.12-rc4
  • v4.12-rc3
32 results

inode.c

  • David Howells's avatar
    a1b879ee
    afs: Fix key leak in afs_release() and afs_evict_inode() · a1b879ee
    David Howells authored
    
    Fix afs_release() to go through the cleanup part of the function if
    FMODE_WRITE is set rather than exiting through vfs_fsync() (which skips the
    cleanup).  The cleanup involves discarding the refs on the key used for
    file ops and the writeback key record.
    
    Also fix afs_evict_inode() to clean up any left over wb keys attached to
    the inode/vnode when it is removed.
    
    Fixes: 5a813276 ("afs: Do better accretion of small writes on newly created content")
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    a1b879ee
    History
    afs: Fix key leak in afs_release() and afs_evict_inode()
    David Howells authored
    
    Fix afs_release() to go through the cleanup part of the function if
    FMODE_WRITE is set rather than exiting through vfs_fsync() (which skips the
    cleanup).  The cleanup involves discarding the refs on the key used for
    file ops and the writeback key record.
    
    Also fix afs_evict_inode() to clean up any left over wb keys attached to
    the inode/vnode when it is removed.
    
    Fixes: 5a813276 ("afs: Do better accretion of small writes on newly created content")
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>