summaryrefslogtreecommitdiffstats
path: root/fs/adfs/adfs.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2019-12-09 12:10:47 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2020-01-21 02:12:42 +0100
commitaacc954c1be8910a994e09a8f8757a2e3e231c37 (patch)
tree99f06bcba784a12524ca2bd068d3ba9f3fd255ad /fs/adfs/adfs.h
parentfs/adfs: newdir: clean up adfs_f_update() (diff)
downloadlinux-aacc954c1be8910a994e09a8f8757a2e3e231c37.tar.xz
linux-aacc954c1be8910a994e09a8f8757a2e3e231c37.zip
fs/adfs: newdir: split out directory commit from update
After changing a directory, we need to update the sequence numbers and calculate the new check byte before the directory is scheduled to be written back to the media. Since this needs to happen for any change to the directory, move this into a separate method. 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/adfs/adfs.h b/fs/adfs/adfs.h
index 1f431a42e14c..c05555252fec 100644
--- a/fs/adfs/adfs.h
+++ b/fs/adfs/adfs.h
@@ -130,6 +130,7 @@ struct adfs_dir_ops {
int (*update)(struct adfs_dir *dir, struct object_info *obj);
int (*create)(struct adfs_dir *dir, struct object_info *obj);
int (*remove)(struct adfs_dir *dir, struct object_info *obj);
+ int (*commit)(struct adfs_dir *dir);
};
struct adfs_discmap {