Skip to contentSkip to conversation

hfsplus: integrate journal replay support into driver

PATCH Superseded Vyacheslav Dubeyko 1 participant 1 message Feb 12, 2014

Subsystems (2)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Vyacheslav Dubeyko

author maintainer
#0 lore raw

PATCH v3 15/15 hfsplus: integrate journal replay support into driver

From: Vyacheslav Dubeyko <[email protected]>
Subject: [PATCH v3 15/15] hfsplus: integrate journal replay support into driver

This patch integrates HFS+ journal replaying functionality into the file system driver.

CC Al Viro <[email protected]>
CC Christoph Hellwig <[email protected]>
CC Hin-Tak Leung <[email protected]>
---
 fs/hfsplus/Makefile     |    3 +-
 fs/hfsplus/hfsplus_fs.h |    5 +++
 fs/hfsplus/super.c      |   90 +++++++++++++++++++++++++++++++++++++++--------
 3 files changed, 82 insertions(+), 16 deletions(-)
fs/hfsplus/Makefile +2 -1
index 683fca2..927e89c 100644
@@ -6,6 +6,7 @@ obj-$(CONFIG_HFSPLUS_FS) += hfsplus.o
 
 hfsplus-objs := super.o options.o inode.o ioctl.o extents.o catalog.o dir.o btree.o \
 		bnode.o brec.o bfind.o tables.o unicode.o wrapper.o bitmap.o part_tbl.o \
-		attributes.o xattr.o xattr_user.o xattr_security.o xattr_trusted.o
+		attributes.o xattr.o xattr_user.o xattr_security.o xattr_trusted.o \
+		journal.o
 
 hfsplus-$(CONFIG_HFSPLUS_FS_POSIX_ACL)	+= posix_acl.o
fs/hfsplus/hfsplus_fs.h +5 -0
index 3a0b3f9..ad39752 100644
@@ -489,6 +489,11 @@ int hfsplus_free_fork(struct super_block *, u32,
 int hfsplus_file_extend(struct inode *);
 void hfsplus_file_truncate(struct inode *);
 
+/* journal.c */
+int hfsplus_init_journal(struct super_block *sb);
+void hfsplus_destroy_journal(struct super_block *sb);
+int hfsplus_check_journal(struct super_block *sb);
+
 /* inode.c */
 extern const struct address_space_operations hfsplus_aops;
 extern const struct address_space_operations hfsplus_btree_aops;
fs/hfsplus/super.c +75 -15

149 lines not on this page · raw message

Signature · 1 line
1.7.9.5