diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2019-12-09 12:08:44 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2020-01-21 02:12:40 +0100 |
commit | 7b1952676256d2cdc03d0415a4c0e6bfb64e00ff (patch) | |
tree | 1525b175967b2907484ea4ebbe2693bcb3c06694 /fs/adfs/adfs.h | |
parent | fs/adfs: map: break up adfs_read_map() (diff) | |
download | linux-7b1952676256d2cdc03d0415a4c0e6bfb64e00ff.tar.xz linux-7b1952676256d2cdc03d0415a4c0e6bfb64e00ff.zip |
fs/adfs: map: factor out map cleanup
We have several places which deal with releasing the map buffers and
freeing the map array. Provide a helper for this.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/adfs/adfs.h')
-rw-r--r-- | fs/adfs/adfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/adfs/adfs.h b/fs/adfs/adfs.h index 45fd48fbd5e0..6497da8a2c8a 100644 --- a/fs/adfs/adfs.h +++ b/fs/adfs/adfs.h @@ -147,6 +147,7 @@ int adfs_notify_change(struct dentry *dentry, struct iattr *attr); int adfs_map_lookup(struct super_block *sb, u32 frag_id, unsigned int offset); void adfs_map_statfs(struct super_block *sb, struct kstatfs *buf); struct adfs_discmap *adfs_read_map(struct super_block *sb, struct adfs_discrecord *dr); +void adfs_free_map(struct super_block *sb); /* Misc */ __printf(3, 4) |