fs/adfs: newdir: factor out directory format validation
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 9 Dec 2019 11:10:27 +0000 (11:10 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 21 Jan 2020 01:12:41 +0000 (20:12 -0500)
commitffc8df347e4934c8bad776f7bdacb4842620b0c7
tree4fab33896fb83b3297a13f6d7d75e1ad2f8d7b00
parent016936b32131d0b33328d8c109f83fabb56618a3
fs/adfs: newdir: factor out directory format validation

We have two locations where we validate the new directory format, so
factor this out to a helper.

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