OSDN Git Service

dax: dax_layout_busy_page() warn on !exceptional
authorRoss Zwisler <ross.zwisler@linux.intel.com>
Sun, 29 Jul 2018 20:59:16 +0000 (16:59 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 29 Jul 2018 20:59:16 +0000 (16:59 -0400)
commitcdbf8897cb09b7baf2b8a7e78051a35a872b01d5
tree948dc77af5c5b9627fbe8b6fd3eb56e48556f1ef
parent0694f8c39f113bcdb759a7f84981a69bf5d7161d
dax: dax_layout_busy_page() warn on !exceptional

Inodes using DAX should only ever have exceptional entries in their page
caches.  Make this clear by warning if the iteration in
dax_layout_busy_page() ever sees a non-exceptional entry, and by adding a
comment for the pagevec_release() call which only deals with struct page
pointers.

Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
fs/dax.c