pstore: Refactor pstorefs record list removal
authorKees Cook <keescook@chromium.org>
Tue, 5 May 2020 02:41:30 +0000 (19:41 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 12 May 2020 16:15:29 +0000 (09:15 -0700)
commit7a0ad546847a23f92f5e227fa8e4578eaa3a8d0a
tree12faf3065122ed0a2c716ca09ec13042997c4f2c
parent6248a0666c8a408dcc5bd952536274d5bd0f02cb
pstore: Refactor pstorefs record list removal

The "unlink" handling should perform list removal (which can also make
sure records don't get double-erased), and the "evict" handling should
be responsible only for memory freeing.

Link: https://lore.kernel.org/lkml/20200506152114.50375-8-keescook@chromium.org/
Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/inode.c