diff options
author | Konstantin Khlebnikov | 2014-08-06 16:06:32 -0700 |
---|---|---|
committer | Linus Torvalds | 2014-08-06 18:01:18 -0700 |
commit | 66ee4b8887ec5ce04bae3e840d206db7b7ad34d1 (patch) | |
tree | ca202430d326aaca6ad5f11e7296ccf1956aa961 /lib/lz4 | |
parent | ef6b571fb8920d5006349a6e29ac47c4817e9691 (diff) |
shmem: fix double uncharge in __shmem_file_setup()
If __shmem_file_setup() fails on struct file allocation it uncharges
memory commitment twice: first by shmem_unacct_size() and second time
implicitly in shmem_evict_inode() when it kills the newly created inode.
This patch removes shmem_unacct_size() from error path if the inode was
already there.
Signed-off-by: Konstantin Khlebnikov <koct9i@gmail.com>
Acked-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/lz4')
0 files changed, 0 insertions, 0 deletions