diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-01-12 16:12:05 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-01-12 20:02:47 -0500 |
commit | 43d344d7722f9b914849ba0014342111a9a0b03e (patch) | |
tree | c82358306b77b2ccf94059de02fb3df3ac1593af /fs/hpfs | |
parent | 0df6a63f8735a7c8a877878bc215d4312e41ef81 (diff) |
switch hpfs
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/hpfs')
-rw-r--r-- | fs/hpfs/dentry.c | 7 | ||||
-rw-r--r-- | fs/hpfs/dir.c | 1 | ||||
-rw-r--r-- | fs/hpfs/hpfs_fn.h | 2 | ||||
-rw-r--r-- | fs/hpfs/super.c | 2 |
4 files changed, 3 insertions, 9 deletions
diff --git a/fs/hpfs/dentry.c b/fs/hpfs/dentry.c index 32c13a94e1e9..05d4816e4e77 100644 --- a/fs/hpfs/dentry.c +++ b/fs/hpfs/dentry.c | |||
@@ -58,12 +58,7 @@ static int hpfs_compare_dentry(const struct dentry *parent, | |||
58 | return 0; | 58 | return 0; |
59 | } | 59 | } |
60 | 60 | ||
61 | static const struct dentry_operations hpfs_dentry_operations = { | 61 | const struct dentry_operations hpfs_dentry_operations = { |
62 | .d_hash = hpfs_hash_dentry, | 62 | .d_hash = hpfs_hash_dentry, |
63 | .d_compare = hpfs_compare_dentry, | 63 | .d_compare = hpfs_compare_dentry, |
64 | }; | 64 | }; |
65 | |||
66 | void hpfs_set_dentry_operations(struct dentry *dentry) | ||
67 | { | ||
68 | d_set_d_op(dentry, &hpfs_dentry_operations); | ||
69 | } | ||
diff --git a/fs/hpfs/dir.c b/fs/hpfs/dir.c index 2338130cceba..d32f63a569f7 100644 --- a/fs/hpfs/dir.c +++ b/fs/hpfs/dir.c | |||
@@ -298,7 +298,6 @@ struct dentry *hpfs_lookup(struct inode *dir, struct dentry *dentry, struct name | |||
298 | 298 | ||
299 | end: | 299 | end: |
300 | end_add: | 300 | end_add: |
301 | hpfs_set_dentry_operations(dentry); | ||
302 | unlock_kernel(); | 301 | unlock_kernel(); |
303 | d_add(dentry, result); | 302 | d_add(dentry, result); |
304 | return NULL; | 303 | return NULL; |
diff --git a/fs/hpfs/hpfs_fn.h b/fs/hpfs/hpfs_fn.h index 2fee17d0d9ab..1c43dbea55e8 100644 --- a/fs/hpfs/hpfs_fn.h +++ b/fs/hpfs/hpfs_fn.h | |||
@@ -233,7 +233,7 @@ void hpfs_mark_4buffers_dirty(struct quad_buffer_head *); | |||
233 | 233 | ||
234 | /* dentry.c */ | 234 | /* dentry.c */ |
235 | 235 | ||
236 | void hpfs_set_dentry_operations(struct dentry *); | 236 | extern const struct dentry_operations hpfs_dentry_operations; |
237 | 237 | ||
238 | /* dir.c */ | 238 | /* dir.c */ |
239 | 239 | ||
diff --git a/fs/hpfs/super.c b/fs/hpfs/super.c index 49935ba78db8..b30426b1fc97 100644 --- a/fs/hpfs/super.c +++ b/fs/hpfs/super.c | |||
@@ -550,6 +550,7 @@ static int hpfs_fill_super(struct super_block *s, void *options, int silent) | |||
550 | /* Fill superblock stuff */ | 550 | /* Fill superblock stuff */ |
551 | s->s_magic = HPFS_SUPER_MAGIC; | 551 | s->s_magic = HPFS_SUPER_MAGIC; |
552 | s->s_op = &hpfs_sops; | 552 | s->s_op = &hpfs_sops; |
553 | s->s_d_op = &hpfs_dentry_operations; | ||
553 | 554 | ||
554 | sbi->sb_root = superblock->root; | 555 | sbi->sb_root = superblock->root; |
555 | sbi->sb_fs_size = superblock->n_sectors; | 556 | sbi->sb_fs_size = superblock->n_sectors; |
@@ -651,7 +652,6 @@ static int hpfs_fill_super(struct super_block *s, void *options, int silent) | |||
651 | iput(root); | 652 | iput(root); |
652 | goto bail0; | 653 | goto bail0; |
653 | } | 654 | } |
654 | hpfs_set_dentry_operations(s->s_root); | ||
655 | 655 | ||
656 | /* | 656 | /* |
657 | * find the root directory's . pointer & finish filling in the inode | 657 | * find the root directory's . pointer & finish filling in the inode |