OSDN Git Service

fs/adfs: super: fix inode dropping
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 9 Dec 2019 11:11:18 +0000 (11:11 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 21 Jan 2020 01:12:42 +0000 (20:12 -0500)
commitf352064275adfeb6f88cb0fb25cc623750adf89f
treec8bce73ed0fd23ca40ddbe54cbc1486527f370e0
parenta464152f2e6dfd6d8be45c5e591cb8be20a97bdb
fs/adfs: super: fix inode dropping

When we have write support enabled, we must not drop inodes before they
have been written back, otherwise we lose updates to the filesystem on
umount.  Keep the inodes around unless we are built in read-only mode,
or we are mounted read-only.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/adfs/super.c